"Press enter" for first connect
This commit is contained in:
parent
414ff4a546
commit
4468db389f
6
start
6
start
@ -323,6 +323,10 @@ function menuFor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function askForFunnyUserCreds() {
|
function askForFunnyUserCreds() {
|
||||||
|
clr
|
||||||
|
echo "Press Enter to start."
|
||||||
|
read -s
|
||||||
|
|
||||||
askStr 12 "Login" "Username:" ""
|
askStr 12 "Login" "Username:" ""
|
||||||
username=$(cat $TMP)
|
username=$(cat $TMP)
|
||||||
askPw 12 "Login" "Password:" ""
|
askPw 12 "Login" "Password:" ""
|
||||||
@ -330,7 +334,7 @@ function askForFunnyUserCreds() {
|
|||||||
|
|
||||||
if [ -f .pw/$username ]; then
|
if [ -f .pw/$username ]; then
|
||||||
if [ "$password" != $(cat .pw/$username) ]; then
|
if [ "$password" != $(cat .pw/$username) ]; then
|
||||||
clear
|
clr
|
||||||
echo "Wrong credentials."
|
echo "Wrong credentials."
|
||||||
sleep 3
|
sleep 3
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -357,6 +357,10 @@ function menuFor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function askForFunnyUserCreds() {
|
function askForFunnyUserCreds() {
|
||||||
|
clear
|
||||||
|
echo "Press Enter to start."
|
||||||
|
read -s
|
||||||
|
|
||||||
askStr 12 "Login" "Username:" ""
|
askStr 12 "Login" "Username:" ""
|
||||||
username=$(cat $TMP)
|
username=$(cat $TMP)
|
||||||
askPw 12 "Login" "Password:" ""
|
askPw 12 "Login" "Password:" ""
|
||||||
|
Loading…
Reference in New Issue
Block a user