mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
17 lines
418 B
Ruby
17 lines
418 B
Ruby
class Registrant::SessionsController < Devise::SessionsController
|
|
layout 'registrant/application'
|
|
|
|
private
|
|
|
|
def after_sign_in_path_for(_resource_or_scope)
|
|
registrant_root_path
|
|
end
|
|
|
|
def after_sign_out_path_for(_resource_or_scope)
|
|
new_registrant_user_session_path
|
|
end
|
|
|
|
def user_for_paper_trail
|
|
current_registrant_user.present? ? current_registrant_user.id_role_username : 'anonymous'
|
|
end
|
|
end
|