added password reset when account locked
This commit is contained in:
parent
0d1602de1f
commit
3960dab9dd
2
bml.sh
2
bml.sh
@ -25,6 +25,6 @@ lightgreen=`tput setaf 10`
|
||||
yellow=`tput setaf 11`
|
||||
reset=`tput sgr0`
|
||||
|
||||
#source osdetect.sh 2>/dev/null
|
||||
source osdetect.sh
|
||||
|
||||
source readpass.sh
|
||||
|
10
login.sh
10
login.sh
@ -13,7 +13,15 @@ if [ "$LOGIN" = "0" ]
|
||||
elif [ "$LOGIN" = "20" ]
|
||||
then
|
||||
echo "${red}Account Locked!${reset}"
|
||||
exit
|
||||
echo "${lightred}Please reset password and login again.${reset}"
|
||||
echo ""
|
||||
if [ "$MAC" = "true" ]
|
||||
then
|
||||
open https://www.bankofmaldives.com.mv/internetbanking/forgot_password
|
||||
else
|
||||
xdg-open https://www.bankofmaldives.com.mv/internetbanking/forgot_password
|
||||
fi
|
||||
source readpass.sh
|
||||
elif [ "$LOGIN" = "2" ]
|
||||
then
|
||||
source readpass.sh
|
||||
|
10
osdetect.sh
10
osdetect.sh
@ -2,12 +2,14 @@
|
||||
|
||||
if [ "uname -r | grep -oE microsoft" = "microsoft" ]
|
||||
then
|
||||
echo "${red}WSL Not Supported!${reset}" 1>&2
|
||||
exit
|
||||
WSL=true
|
||||
#echo "${red}WSL Not Supported!${reset}" 1>&2
|
||||
#exit
|
||||
elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
|
||||
then
|
||||
echo "${red}MacOS Not Supported!${reset}" 1>&2
|
||||
exit
|
||||
#echo "${red}MacOS Not Supported!${reset}" 1>&2
|
||||
#exit
|
||||
MAC=true
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user