mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Add another login path
This commit is contained in:
parent
93838f0da0
commit
efd3e4a565
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def after_sign_in_path_for(_resource)
|
||||
rt = session[:user_return_to].to_s.presence
|
||||
login_paths = [admin_login_path, registrar_login_path]
|
||||
login_paths = [admin_login_path, registrar_login_path, '/login']
|
||||
return rt if rt && !login_paths.include?(rt)
|
||||
|
||||
if request.path.match('registrar')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue