mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Handlers for mid login
This commit is contained in:
parent
0ecbd87004
commit
418bd2046c
16 changed files with 173 additions and 7 deletions
|
@ -54,6 +54,6 @@ class Admin::ApiUsersController < AdminController
|
|||
end
|
||||
|
||||
def api_user_params
|
||||
params.require(:api_user).permit(:username, :password, :active, :registrar_id, :registrar_typeahead)
|
||||
params.require(:api_user).permit(:username, :password, :active, :registrar_id, :registrar_typeahead, :identity_code)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,4 +7,8 @@ class Admin::SessionsController < SessionsController
|
|||
|
||||
def login
|
||||
end
|
||||
|
||||
def find_user_by_idc(idc)
|
||||
AdminUser.find_by(identity_code: idc)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue