password too short
parent
d12c125c22
commit
bf0571c31b
|
@ -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…
Reference in New Issue