Added redirect for after sign_in
This commit is contained in:
parent
6d5dd4a80f
commit
21928d23ee
|
@ -449,6 +449,15 @@ class ApplicationController < ActionController::Base
|
|||
objects
|
||||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
if current_user.email.blank?
|
||||
Rails.logger.info"@@@@@@@"+current_user.inspect
|
||||
admin_users_new_interface_edit_user_data_path(current_user)
|
||||
else
|
||||
root_path
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def mobile_device?
|
||||
|
|
Reference in New Issue