oHirokiKumamoto / hack-spirit

Make TeamSpirit hackable
18 stars 6 forks source link

Remember user name & password #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

It's tiresome to type the user name and password each time we invoke hack-spirit. Can we make it remember them (maybe using Keychain or something)?

ghost commented 8 years ago

An obvious workaround is to make a wrapper script that appends user name and password to the command line:

#!/bin/sh
hack-spirit "$@" -u foo@example.com -p bar
oHirokiKumamoto commented 8 years ago

I agree with you.

I'm already tired of typing user name and password.

There are some libraries (such as node-keychain ) that provides keychain utility functions.

Alternatively, I think it is good way to load user and pass from config file such as .hackspiritrc But, from the viewpoint of security, keychain is the best way to save us the trouble of typing user name and password for OSX.

So, I'll try using node-keychain

oHirokiKumamoto commented 8 years ago

Hi,

I implemented new login command in order to remember user and password at #7.

Please check it out.

oHirokiKumamoto commented 8 years ago

7 was merged.

And released as 0.0.3

ghost commented 8 years ago

Great! Thanks so much!!