Skip to content

Instantly share code, notes, and snippets.

@jamespeerless
Created August 5, 2014 14:55
Show Gist options
  • Save jamespeerless/03b5df828a012a42e1d5 to your computer and use it in GitHub Desktop.
Save jamespeerless/03b5df828a012a42e1d5 to your computer and use it in GitHub Desktop.
if this.rawPassword
plainKey = decryptKey(this.rawPassword, user.key, null, true)
if user.key != plainKey
user.key = plainKey
key = plainKey
else
delete user.key
else
delete user.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment