]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commitdiff
saved login: don't give outdated ticket to login form
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 4 Jul 2023 13:53:17 +0000 (15:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 Jul 2023 15:08:11 +0000 (17:08 +0200)
if the user was logged in in the past, but that ticket expired, we still
gave the expired ticket to the login form which tried to login with
that, producing a login error the first time the user pressed login.

we already get the correct ticket in a variable, so use that.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
lib/proxmox_login_selector.dart

index e5994611ec3ac7133db0766a954b8dcc88d3698b..8573ab06f986a28bc129271a0f00fb770925fa9a 100644 (file)
@@ -207,7 +207,7 @@ class _ProxmoxLoginSelectorState extends State<ProxmoxLoginSelector> {
         builder: (context) => ProxmoxLoginPage(
               userModel: user,
               isCreate: isCreate,
-              ticket: user?.ticket,
+              ticket: ticket,
               password: password,
             )));
     refreshFromStorage();