Register: require at least 20-byte passwords.
This commit is contained in:
parent
f9ad5e1d93
commit
af22ea8d18
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ class AuthD::Request
|
|||
end
|
||||
|
||||
# In this case we should not accept its registration.
|
||||
if @password.size < 4
|
||||
return Response::Error.new "password too short"
|
||||
if @password.size < 20
|
||||
return Response::Error.new "password too short (< 20 characters)"
|
||||
end
|
||||
|
||||
uid = authd.new_uid
|
||||
|
|
Loading…
Add table
Reference in a new issue