mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
improve username autocomplete
This commit is contained in:
@@ -313,6 +313,8 @@ api.resetPassword = {
|
||||
});
|
||||
|
||||
await user.save();
|
||||
} else {
|
||||
let user = await User.findOne({ 'auth.google.email': email }).exec();
|
||||
}
|
||||
|
||||
res.respond(200, {}, res.t('passwordReset'));
|
||||
|
||||
Reference in New Issue
Block a user