mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Admin user model returns min password length
This commit is contained in:
parent
b08e881a24
commit
14457921cc
2 changed files with 10 additions and 0 deletions
|
@ -11,6 +11,10 @@ class AdminUser < User
|
|||
|
||||
devise :database_authenticatable, :rememberable, :trackable, :validatable, :lockable
|
||||
|
||||
def self.min_password_length
|
||||
Devise.password_length.min
|
||||
end
|
||||
|
||||
def to_s
|
||||
username
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue