-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathkeyboardInteractiveAuthPanel.component.pug
More file actions
44 lines (36 loc) · 1.02 KB
/
keyboardInteractiveAuthPanel.component.pug
File metadata and controls
44 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.d-flex
strong(translate) Keyboard-interactive auth
.ms-2 {{prompt.name}}
.prompt-text {{prompt.prompts[step].prompt}}
.totp-info.mt-2(*ngIf='isTOTP() && profile.options.totpSecret')
.d-flex.align-items-center
.totp-code.me-3
strong {{totpCode}}
.totp-timer
small {{totpTimeRemaining}}s remaining
.ms-auto
small.text-muted Auto-filled
input.form-control.mt-2(
#input,
autofocus,
[type]='isPassword() ? "password": "text"',
placeholder='Response',
(keyup.enter)='next()',
[(ngModel)]='prompt.responses[step]'
)
.d-flex.mt-3
checkbox(
*ngIf='isPassword()',
[(ngModel)]='remember',
[text]='"Save password"|translate'
)
.ms-auto
button.btn.btn-secondary.me-3(
*ngIf='step > 0',
(click)='previous()'
)
button.btn.btn-primary(
(click)='next()'
)
span(*ngIf='step < prompt.prompts.length - 1') Next
span(*ngIf='step == prompt.prompts.length - 1') Finish