2014-10-02 12:38:26 +00:00
|
|
|
class ConfirmationsController < Devise::ConfirmationsController
|
2016-03-11 16:14:29 +00:00
|
|
|
def almost_there
|
|
|
|
flash[:notice] = nil
|
|
|
|
render layout: "devise_empty"
|
|
|
|
end
|
|
|
|
|
2014-10-02 12:38:26 +00:00
|
|
|
protected
|
|
|
|
|
2016-03-11 16:14:29 +00:00
|
|
|
def after_resending_confirmation_instructions_path_for(resource)
|
|
|
|
users_almost_there_path
|
|
|
|
end
|
|
|
|
|
2014-10-02 12:38:26 +00:00
|
|
|
def after_confirmation_path_for(resource_name, resource)
|
|
|
|
if signed_in?(resource_name)
|
2015-04-10 13:22:31 +00:00
|
|
|
after_sign_in_path_for(resource)
|
2014-10-02 12:38:26 +00:00
|
|
|
else
|
2016-11-15 01:30:12 +00:00
|
|
|
flash[:notice] += " Please sign in."
|
|
|
|
new_session_path(resource_name)
|
2014-10-02 12:38:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|