Commit 46af001
fix(app-shell): don't show recovery-password reminder on SSO-enforced envs (#2184)
The RecoveryPasswordReminder nudges the user to set a local recovery password
"so you can still sign in if SSO is ever unavailable". But on an SSO-enforced
env, password login is DISABLED (LoginForm already hides the password field) —
so a recovery password can't actually be used. Showing the nudge there is
misleading and gives a false sense of security (set one, SSO goes down, still
locked out).
Gate the reminder on password-login availability using the same signal LoginForm
reads from getAuthConfig(): features.ssoEnforced === true || emailPassword.enabled
=== false. Only show when a password fallback is actually usable.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent f32979d commit 46af001
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
203 | 214 | | |
204 | 215 | | |
205 | | - | |
| 216 | + | |
206 | 217 | | |
207 | 218 | | |
208 | 219 | | |
| |||
0 commit comments