forked from freifunk-franken/firmware
fff-web: Allow minus (-) in passwords
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Christian Dresel <fff@chrisi01.de> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
eff6b0a305
commit
bac439a254
|
@ -4,7 +4,7 @@
|
|||
# write
|
||||
if [ "$REQUEST_METHOD" == "POST" ] ; then
|
||||
#check for special characters in password
|
||||
regex='^[a-zA-Z0-9!#\$%\(\)\*\+,\.:;=\?@\^_]+$'
|
||||
regex='^[a-zA-Z0-9!#\$%\(\)\*\+,\.:;=\?@\^_-]+$'
|
||||
if [ "$POST_pass1" == "" ] ; then
|
||||
MSG='<span class="red">Das Passwort darf nicht leer sein!</span>'
|
||||
elif ! echo -n "$POST_pass1" | egrep -q "$regex"; then
|
||||
|
|
Loading…
Reference in New Issue