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 <[email protected]>
---
 lib/proxmox_login_selector.dart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/proxmox_login_selector.dart b/lib/proxmox_login_selector.dart
index e599461..8573ab0 100644
--- a/lib/proxmox_login_selector.dart
+++ b/lib/proxmox_login_selector.dart
@@ -207,7 +207,7 @@ class _ProxmoxLoginSelectorState extends 
State<ProxmoxLoginSelector> {
         builder: (context) => ProxmoxLoginPage(
               userModel: user,
               isCreate: isCreate,
-              ticket: user?.ticket,
+              ticket: ticket,
               password: password,
             )));
     refreshFromStorage();
-- 
2.30.2



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to