[#356] trigger password validators when any of the password related fields is set

This commit is contained in:
Gani Georgiev
2022-12-12 12:42:15 +02:00
parent 18d6a1c529
commit 21f442293f
2 changed files with 25 additions and 4 deletions

View File

@@ -794,6 +794,24 @@ func TestRecordUpsertAuthRecord(t *testing.T) {
},
// password
{
"trigger the password validations if only oldPassword is set",
"4q1xlclmfloku33",
map[string]any{
"oldPassword": "1234567890",
},
false,
true,
},
{
"trigger the password validations if only passwordConfirm is set",
"4q1xlclmfloku33",
map[string]any{
"passwordConfirm": "1234567890",
},
false,
true,
},
{
"try to update password without managed access",
"4q1xlclmfloku33",