fix: browser context on password-change history, plain settings errors, New password label

Found in the browser check: change-password history rows had no browser
or IP, settings errors named internal fields, and the dialog's new
password field read just "Password".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-11-30 14:52:15 +08:00
1 parent 091503a820
commit dd9bbbe036
10 files changed
+69 -10

No files matched your search

@@ -333,6 +333,13 @@ class LoginSecurityServiceTest {
verify(properties, never()).save(any());
}
@Test
void settingsErrorsReadAsPlainText() {
assertThatThrownBy(() -> service.saveConfig(new Config(true, 0, 15, "M"))).hasMessage("Max attempts must be at least 1");
assertThatThrownBy(() -> service.saveConfig(new Config(true, 5, 0, "M"))).hasMessage("Period must be at least 1");
assertThatThrownBy(() -> service.saveConfig(new Config(true, 5, 15, "X"))).hasMessage("Unit must be seconds, minutes, hours or days");
}
@Test
void validConfigUpdatesThreeRowsAndEnabledSetsPeriodStatus() {
settings("Y", "15", "4", "H");