Closed geakstr closed 8 years ago
Thanks so much, I'll take a look soon!
I think demo will stop working, because users localstorage will contain unencrypted passwords
Oh yeah actually, that might happen. What could we do to circumvent that?
I just tried it, and indeed as expected, previously registered password don't work. (e.g. the default username/password combination throws a "wrong password" error)
Any ideas how we could work around that?
I don't see a good solution. Maybe set flag in localstorage: if flag not exist — clear storage. Or move from localstorage to in-memory storage.
Yeah, a flag might be a good way to go. Would you mind adding that?
Ok, I'll do it :)
I just merged #6 and now we have some conflicts, would you mind resolving them? :+1:
@mxstbr fixed
Thanks for the great PR, much appreciated!
Very nice!
Encrypt user password with bcrypt and send this to server while login/register
Included new function
./js/utils/salt.js
for generate static salt by seed. Uses for generating salt by username