add redirect handler
This commit is contained in:
@@ -12,6 +12,16 @@ class SessionsController < Devise::SessionsController
|
||||
|
||||
private
|
||||
|
||||
def after_sign_in_path_for(...)
|
||||
if params[:redir].present?
|
||||
return console_redirect_index_path(redir: params[:redir]) if params[:redir].starts_with?(Docuseal::CONSOLE_URL)
|
||||
|
||||
return params[:redir]
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def require_no_authentication
|
||||
super
|
||||
|
||||
|
||||
Reference in New Issue
Block a user