Made some UI states persistent across sessions, ref #484

This commit is contained in:
emeric
2024-09-12 14:01:03 +02:00
parent da22843272
commit c165ed9f2f
25 changed files with 486 additions and 101 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ namespace lms::ui
}
addField(PasswordField);
setValidator(PasswordField, createPasswordStrengthValidator([] { return auth::PasswordValidationContext{ LmsApp->getUserLoginName(), LmsApp->getUserType() }; }));
setValidator(PasswordField, createPasswordStrengthValidator([] { return auth::PasswordValidationContext{ .loginName = std::string{ LmsApp->getUserLoginName() }, .userType = LmsApp->getUserType() }; }));
addField(PasswordConfirmField);
}