X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=users.sh;fp=users.sh;h=4d7965a57b260f5dc1a50ad4bc3f0411b0c07c0e;hp=f616ca02baca5d07c7199640ab436e064f4d405a;hb=04871f749f90aeaa8bfca07edf5a6cd5d3fac2bf;hpb=3a4544b251d7ca6192b3ff7c635a0f1f2efe8285 diff --git a/users.sh b/users.sh index f616ca0..4d7965a 100755 --- a/users.sh +++ b/users.sh @@ -429,7 +429,7 @@ user_update(){ uid="$(POST uid)" oldpw="$(POST oldpw)" - pw="$(POST pw |grep -xE '.{6}')" + pw="$(POST pw |grep -m1 -xE '.{6,}')" pwconfirm="$(POST pwconfirm)" @@ -442,7 +442,7 @@ user_update(){ update_user "${uid}" password="$pw" REDIRECT "${_BASE}${PATH_INFO}#UPDATE_SUCCESS" else - REDIRECT "${_BASE}${PATH_INFO}#ERROR_PWMISMATCH" + REDIRECT "${_BASE}${PATH_INFO}#ERROR_PW_MISMATCH" fi elif [ "$UID_" = "$USER_ID" ]; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_INVALID_AUTH_PASSWORD"