"Press enter" for first connect

This commit is contained in:
Bandie 2021-01-02 19:41:29 +01:00
parent 414ff4a546
commit 4468db389f
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312
2 changed files with 9 additions and 1 deletions

6
start
View File

@ -323,6 +323,10 @@ function menuFor() {
}
function askForFunnyUserCreds() {
clr
echo "Press Enter to start."
read -s
askStr 12 "Login" "Username:" ""
username=$(cat $TMP)
askPw 12 "Login" "Password:" ""
@ -330,7 +334,7 @@ function askForFunnyUserCreds() {
if [ -f .pw/$username ]; then
if [ "$password" != $(cat .pw/$username) ]; then
clear
clr
echo "Wrong credentials."
sleep 3
exit 1

View File

@ -357,6 +357,10 @@ function menuFor() {
}
function askForFunnyUserCreds() {
clear
echo "Press Enter to start."
read -s
askStr 12 "Login" "Username:" ""
username=$(cat $TMP)
askPw 12 "Login" "Password:" ""