]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commit
update to new-format TFA login
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 3 Jul 2023 10:19:32 +0000 (12:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 3 Jul 2023 10:35:59 +0000 (12:35 +0200)
commiteb675700fc958420a1b8443b8efc46e55f64cbcb
tree17a0fe0121b5c46303f6ae9f91228a324ab228da
parent86ffe27b2407d296d3e3974e3612d38885511b7a
update to new-format TFA login

use the initState method to avoid that we override the initial
selected TFA method on every re-build and also to avoid running into
a transitive error when TFA login suceeded, as the handler for that
in the API dart lib will set tfa to null then, causing a null
dereference error if we'd get that in the (re)build method.

Co-authored-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/proxmox_login_form.dart
lib/proxmox_tfa_form.dart