mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Minimum password length + Static Pages fixes (#11474)
* password min length: server + client side registering * tweak text, add tests * misc * use red border for invalid inputs * fix auth form for groups * remove default firefox box shadown on invalid elements * fix css in authForm * fix margings * misc fixes to forms and buttons * fix typo
This commit is contained in:
@@ -245,6 +245,10 @@ api.updatePassword = {
|
||||
},
|
||||
newPassword: {
|
||||
notEmpty: { errorMessage: res.t('missingNewPassword') },
|
||||
isLength: {
|
||||
options: { min: common.constants.MINIMUM_PASSWORD_LENGTH },
|
||||
errorMessage: res.t('minPasswordLength'),
|
||||
},
|
||||
},
|
||||
confirmPassword: {
|
||||
notEmpty: { errorMessage: res.t('missingNewPassword') },
|
||||
|
||||
Reference in New Issue
Block a user