attempt to fix pass
This commit is contained in:
parent
ad8a46951f
commit
bc006b7185
12
bml.sh
12
bml.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source .env
|
||||
#source .env
|
||||
|
||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||
COOKIE=/tmp/bmlcookie
|
||||
@ -8,9 +8,17 @@ red=`tput setaf 1`
|
||||
green=`tput setaf 2`
|
||||
reset=`tput sgr0`
|
||||
|
||||
#printf 'Username: '
|
||||
#read -r BML_USERNAME
|
||||
#printf 'Password: '
|
||||
#read -sp BML_PASSWORD
|
||||
|
||||
read -p 'Username: ' BML_USERNAME
|
||||
read -sp 'Password: ' BML_PASSWORD
|
||||
|
||||
LOGIN=$(curl -s -c $COOKIE $BML_URL/login \
|
||||
--data-raw username=$BML_USERNAME \
|
||||
--data-raw password=$BML_PASSWORD \
|
||||
--data-raw password=${BML_PASSWORD} \
|
||||
--compressed \
|
||||
| jq -r .success)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user