Commit Graph

19 Commits

Author SHA1 Message Date
Thomas Lamprecht
cea0f76433 ui: tfa: also include validity check for password field
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 13:33:19 +02:00
Thomas Lamprecht
54416bb319 ui: tfa: use userid directly for totp url generation
as name is now a displayfield, which by default does not
gets submitted, so just use the fixed userid directly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 12:31:57 +02:00
Thomas Lamprecht
2f21247048 ui: tfa: show username as read only display field for info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 12:26:45 +02:00
Thomas Lamprecht
9390af7b1e ui: tfa: remove fixed labelwidth
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 12:26:22 +02:00
Dominik Csapak
0509c444e9 ui: tfa: allow apply only on valid inputs
only when the totp form and the challenge is valid, allow pressing the
apply button, default is disabled, as the 'user_tfa' data binding was
not used anywhere else replace it with something more fitting.

change allowBlank for the challenge

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-05 10:35:50 +02:00
Dominik Csapak
7bc701927e add a filter mask for the TFA Secret
this way a user cannot (easily) enter wrong characters
else if an invalid Character is entered, one can still hit apply
but not all characters will be used for the secret

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-05 09:20:47 +02:00
Thomas Lamprecht
0bc11f81f1 ui: tfa: fix secret validator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 11:26:12 +02:00
Thomas Lamprecht
7b8d68fe5e ui: tfa: move qrcode creation to controller
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 10:07:25 +02:00
Thomas Lamprecht
6a1c9c29d2 ui: tfa: make lint happy, declare globals
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:31:27 +02:00
Thomas Lamprecht
aa8d628fc8 ui: tfa: also do not allow to delete TFA if not set
better UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:18:00 +02:00
Thomas Lamprecht
28ec45b20d ui: tfa: pregenerate secret if user has not setup TFA yet
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:09:38 +02:00
Thomas Lamprecht
2c2197a37e ui: tfa: hide digit/duration fields as some auth apps are broken
Google Authenticator, for example, just ignores it and thus one
cannot use they produced verification codes...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 08:35:28 +02:00
Thomas Lamprecht
31675561eb ui: tfa: follow up cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 08:34:50 +02:00
Thomas Lamprecht
0abfdbfa98 ui: tfa: s/Code/Verification Code/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
b688436d44 ui: tfa: ExtJS debug complains about - in references
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
34c08874de ui: tfa: make jsliunt a bit more happy
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
a8740316e3 ui: tfa: move randomize button right of secret field
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
ef50fb2903 ui: TFA: hide accout name
It's best to let this to the users real account name, it just
clutters the interface, an there's no real value in it.

One can already use the "issuer" field to add personalized info.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
24d2ed8c27 ui: support u2f authentication and configuration
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00