Commit d38cd2b
committed
fix: set passwordLoginEnabled in the unit test; refresh status doc comment
PasswordlessAuthServiceTest uses @Injectmocks, and Mockito does not process
@value — every such field is set by hand with ReflectionTestUtils. The new
passwordLoginEnabled boolean was not, so it defaulted to false and both
loginWithPassword tests hit the new rejection branch and failed.
Worth spelling out because the polarity is the trap: rateLimitEnabled is
also unset in this test and that is harmless, because it is read as
`if (rateLimitEnabled)` — absence just skips the feature. Password login is
read as `if (!passwordLoginEnabled)`, so absence blocks every login instead.
Also refreshes the getStatus() doc comment in client.js, which still listed
only the four original fields.
Verified: PasswordlessAuthServiceTest 2/2, SetupControllerTest 6/6, no
failures, errors or skips.1 parent 24f085e commit d38cd2b
2 files changed
Lines changed: 7 additions & 1 deletion
File tree
- backend/src/test/java/com/dbaagent/service
- src/lib/api
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3682 | 3682 | | |
3683 | 3683 | | |
3684 | 3684 | | |
3685 | | - | |
| 3685 | + | |
| 3686 | + | |
3686 | 3687 | | |
3687 | 3688 | | |
3688 | 3689 | | |
| |||
0 commit comments