mirror of
https://github.com/internetee/registry.git
synced 2025-05-20 19:29:39 +02:00
Add pw length validator #2752
This commit is contained in:
parent
5e75d0cba3
commit
db33638f0d
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ class ApiUser < User
|
||||||
has_many :certificates
|
has_many :certificates
|
||||||
|
|
||||||
validates :username, :password, :registrar, :roles, presence: true
|
validates :username, :password, :registrar, :roles, presence: true
|
||||||
|
validates :password, length: { minimum: 6 }
|
||||||
validates :username, uniqueness: true
|
validates :username, uniqueness: true
|
||||||
|
|
||||||
# TODO: probably cache, because it's requested on every EPP
|
# TODO: probably cache, because it's requested on every EPP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue