Commit 7153189
committed
fix: TOTP-specific OTP screen issues in AuthorizerVerifyOtp
- Hide "Resend OTP" when is_totp is true: TOTP codes are generated
locally by an authenticator app on a 30s rolling window, never sent
by the server, so offering to resend was misleading and the backend
call for it doesn't apply to this flow.
- Add autocomplete="one-time-code" to the OTP input so browsers/OS
can offer native autofill for authenticator/SMS codes.1 parent a6a4618 commit 7153189
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
0 commit comments