Fix resetting account for social accounts (#15087)
* Fix resetting account for social accounts * added integration tests * chore(packages): reinstall modules * only enable reset button if user typed RESET * fix enabling reset button --------- Co-authored-by: negue <eugen.bolz@gmail.com> Co-authored-by: Sabe Jones <sabe@habitica.com>
This commit is contained in:
@@ -285,7 +285,7 @@ api.deleteUser = {
|
||||
(user.auth.facebook.id || user.auth.google.id || user.auth.apple.id)
|
||||
&& password !== DELETE_CONFIRMATION
|
||||
) {
|
||||
throw new NotAuthorized(res.t('incorrectDeletePhrase', { magicWord: 'DELETE' }));
|
||||
throw new NotAuthorized(res.t('incorrectDeletePhrase', { magicWord: DELETE_CONFIRMATION }));
|
||||
}
|
||||
|
||||
const { feedback } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user