Open haffmans opened 6 years ago
Good catch, this one was added by Sim for his http://beta.freeso.org web interface, so I never really had much reason to test it out. Should be fixed next commit, though I think this stuff needs an extra pass anyways.
The Change Password API ('/userapi/password') doesn't properly validate the old password. It calls the
PasswordHasher.Hash
directly (which generates a hash with a new salt), rather thanPasswordHasher.Verify
.See RegistrationController.cs line 380:
I assume this should instead be similar to the AuthLoginController's method of validating the password: