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
|
#!/bin/bash
|
||||||
|
|
||||||
source .env
|
#source .env
|
||||||
|
|
||||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||||
COOKIE=/tmp/bmlcookie
|
COOKIE=/tmp/bmlcookie
|
||||||
@ -8,9 +8,17 @@ red=`tput setaf 1`
|
|||||||
green=`tput setaf 2`
|
green=`tput setaf 2`
|
||||||
reset=`tput sgr0`
|
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 \
|
LOGIN=$(curl -s -c $COOKIE $BML_URL/login \
|
||||||
--data-raw username=$BML_USERNAME \
|
--data-raw username=$BML_USERNAME \
|
||||||
--data-raw password=$BML_PASSWORD \
|
--data-raw password=${BML_PASSWORD} \
|
||||||
--compressed \
|
--compressed \
|
||||||
| jq -r .success)
|
| jq -r .success)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user