mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Use standard Devise sessions controller in admin area
Fixes a bug when retrying to login with correct credentials
This commit is contained in:
parent
a2451f4a13
commit
5561825584
8 changed files with 88 additions and 47 deletions
|
@ -9,7 +9,8 @@ class AdminUser < User
|
|||
|
||||
ROLES = %w(user customer_service admin) # should not match to api_users roles
|
||||
|
||||
devise :database_authenticatable, :trackable, :validatable, :timeoutable
|
||||
devise :database_authenticatable, :trackable, :validatable, :timeoutable,
|
||||
authentication_keys: [:username]
|
||||
|
||||
def self.min_password_length
|
||||
Devise.password_length.min
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue