mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
Fix: Remove password reset token after successful reset (#248)
Signed-off-by: Knut Ahlers <knut@ahlers.me> Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
@@ -289,7 +289,7 @@ router.post('/password_reset_requests/:confirm_token/confirm', function(req, res
|
||||
bcrypt.genSalt(10, (err, salt) => {
|
||||
bcrypt.hash(password, salt, function(err, hash) {
|
||||
user.password_hash = hash;
|
||||
user.password_token = null;
|
||||
user.password_reset_token = null;
|
||||
user.save().then(function(updatedUser) {
|
||||
res.sendStatus(201);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user