Skip to content

Commit 0062397

Browse files
authored
fix 2fa button (#1035)
* fix 2fa button * add code rabbit improvements
1 parent c34b61b commit 0062397

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/components/users/otp-settings.hbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<button
2020
type='button'
2121
class='btn btn-primary float-end'
22-
{{on 'click' disableOTP}}
22+
{{action 'disableOTP'}}
2323
>
2424
Deactiveren
2525
</button>
@@ -41,6 +41,7 @@
4141
<a
4242
href='https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2'
4343
target='_blank'
44+
rel='noopener noreferrer'
4445
>
4546
Google Authenticator
4647
</a>
@@ -50,6 +51,7 @@
5051
<a
5152
href='https://itunes.apple.com/us/app/authenticator/id766157276?mt=8'
5253
target='_blank'
54+
rel='noopener noreferrer'
5355
>
5456
Authenticator
5557
</a>
@@ -59,6 +61,7 @@
5961
<a
6062
href='https://www.microsoft.com/en-us/store/p/microsoft-authenticator/9nblgggzmcj6'
6163
target='_blank'
64+
rel='noopener noreferrer'
6265
>
6366
Microsoft Authenticator
6467
</a>
@@ -87,11 +90,13 @@
8790
<div class='col-sm-9'>
8891
<Input
8992
@type='text'
90-
min='6'
9193
@value={{this.verificationCode}}
9294
placeholder='Verificatiecode'
9395
inputmode='numeric'
94-
pattern='[0-9]*'
96+
minlength='6'
97+
maxlength='6'
98+
pattern='^[0-9]{6}$'
99+
autocomplete='one-time-code'
95100
required={{true}}
96101
class='form-control'
97102
aria-label='Verificatiecode'

0 commit comments

Comments
 (0)