Update Login and Logout process

This commit is contained in:
Christer Warén
2026-01-18 18:54:36 +02:00
parent a9539ffb9d
commit a37fce53e8
6 changed files with 19 additions and 10 deletions

View File

@@ -61,6 +61,7 @@ wx-login(){
if [[ -z $VAULT_LOGIN || ${#VAULT_LOGIN} -lt 95 || ${#VAULT_LOGIN} -gt 95 ]]
then
wxi-content status "Login" "Failed"
wxi-footer
wxi-stop
fi
@@ -105,7 +106,10 @@ wx-login(){
if [[ -z $VAULT_LOGIN || ${#VAULT_LOGIN} -lt 95 || ${#VAULT_LOGIN} -gt 95 ]]
then
wxi-content status "Login" "Failed"
wxi-stop
wxi-footer
wx-logout &> /dev/null
wx-login
#wxi-stop
fi
TOKEN=$VAULT_LOGIN