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