password too short
This commit is contained in:
parent
d12c125c22
commit
bf0571c31b
1 changed files with 5 additions and 0 deletions
|
@ -245,6 +245,11 @@ class AuthD::Service
|
|||
end
|
||||
end
|
||||
|
||||
# In this case we should not accept its registration.
|
||||
if request.password.size < 4
|
||||
return Response::Error.new "password too short"
|
||||
end
|
||||
|
||||
uid = new_uid
|
||||
password = hash_password request.password
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue