Skip to content
Snippets Groups Projects
Commit 02e43d7b authored by Cristian Rocha's avatar Cristian Rocha
Browse files

problem in password corrected

parent 93265f27
Branches
No related tags found
No related merge requests found
......@@ -118,6 +118,27 @@ function read_user_pass {
check_pass=$( dialog --stdout --passwordbox 'Por favor, confirme a senha:' 0 0 )
done
#check if the password
while [ "$pass" == "" ];
do
dialog \
--title 'Erro:' \
--msgbox 'Senha em branco. Tente novamente.' \
6 40
pass=$( dialog --stdout --passwordbox 'Por favor, digite a senha:' 0 0 )
check_pass=$( dialog --stdout --passwordbox 'Por favor, confirme a senha:' 0 0 )
#check the password
while [ "$pass" != "$check_pass" ];
do
dialog \
--title 'Erro:' \
--msgbox 'As senhas não conferem. Tente novamente.' \
6 40 \
pass=$( dialog --stdout --passwordbox 'Por favor, digite a senha:' 0 0 )
check_pass=$( dialog --stdout --passwordbox 'Por favor, confirme a senha:' 0 0 )
done
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment