controle de saisie
This commit is contained in:
parent
ba38103bf3
commit
453be5fa67
@ -494,7 +494,7 @@ createMail() {
|
||||
while [ $fait -eq 0 ]
|
||||
do
|
||||
read -p "Mail de secours : " EMAIL_SECOURS
|
||||
if [[ ${EMAIL_SECOURS} =~ ${regexMail} ]]
|
||||
if [[ ${EMAIL_SECOURS} =~ ${regexMail} ]] && [ "${EMAIL_SECOURS}" != "" ]
|
||||
then
|
||||
fait=1
|
||||
else
|
||||
@ -508,9 +508,15 @@ createMail() {
|
||||
fi
|
||||
done
|
||||
# On demande le prenom
|
||||
read -p "Prénom : " PRENOM
|
||||
while [ "${PRENOM}" = "" ]
|
||||
do
|
||||
read -p "Prenom : " PRENOM
|
||||
done
|
||||
# On demande le nom
|
||||
while [ "${NOM}" = "" ]
|
||||
do
|
||||
read -p "Nom : " NOM
|
||||
done
|
||||
# On constitue l' ident kaz pour le ldap
|
||||
IDENT_KAZ=$(unaccent utf8 "${PRENOM,,}.${NOM,,}")
|
||||
# on créé le mot de passe
|
||||
|
Loading…
Reference in New Issue
Block a user