added password reset when account locked
This commit is contained in:
		
							
								
								
									
										2
									
								
								bml.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bml.sh
									
									
									
									
									
								
							@@ -25,6 +25,6 @@ lightgreen=`tput setaf 10`
 | 
				
			|||||||
yellow=`tput setaf 11`
 | 
					yellow=`tput setaf 11`
 | 
				
			||||||
reset=`tput sgr0`
 | 
					reset=`tput sgr0`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#source osdetect.sh 2>/dev/null
 | 
					source osdetect.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
source readpass.sh
 | 
					source readpass.sh
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								login.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								login.sh
									
									
									
									
									
								
							@@ -13,7 +13,15 @@ if [ "$LOGIN" = "0" ]
 | 
				
			|||||||
elif [ "$LOGIN" = "20" ]
 | 
					elif [ "$LOGIN" = "20" ]
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		echo "${red}Account Locked!${reset}"
 | 
							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" ]
 | 
					elif [ "$LOGIN" = "2" ]
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		source readpass.sh
 | 
							source readpass.sh
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								osdetect.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								osdetect.sh
									
									
									
									
									
								
							@@ -2,12 +2,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if [ "uname -r | grep -oE microsoft" = "microsoft" ]
 | 
					if [ "uname -r | grep -oE microsoft" = "microsoft" ]
 | 
				
			||||||
        then
 | 
					        then
 | 
				
			||||||
                echo "${red}WSL Not Supported!${reset}" 1>&2
 | 
							WSL=true
 | 
				
			||||||
                exit
 | 
					                #echo "${red}WSL Not Supported!${reset}" 1>&2
 | 
				
			||||||
 | 
					                #exit
 | 
				
			||||||
elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
 | 
					elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
 | 
				
			||||||
        then
 | 
					        then
 | 
				
			||||||
                echo "${red}MacOS Not Supported!${reset}" 1>&2
 | 
					                #echo "${red}MacOS Not Supported!${reset}" 1>&2
 | 
				
			||||||
                exit
 | 
					                #exit
 | 
				
			||||||
 | 
							MAC=true
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
                :
 | 
					                :
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user