added password reset when account locked

This commit is contained in:
Shihaam Abdul Rahman 2021-05-01 01:20:37 +05:00
parent 0d1602de1f
commit 3960dab9dd
3 changed files with 16 additions and 6 deletions

2
bml.sh
View File

@ -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

View File

@ -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

View File

@ -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