Skip to content

Auth: JSON backend truncates file on errors #80

dlichtenberger opened this Issue Apr 13, 2013 · 1 comment

2 participants


I accidently tried to update a user's password in Snap 0.11.2 with
saveUser (user { userPassword = Just (ClearText "...") } )
instead of using the encrypted password.
The JSON backend throws the error "ClearText passwords can't be serialized into JSON" and truncates the users.json file at the location where the encrypted password would have been written.

Snap Framework member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.