Update Login and Logout process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user