Class: Authuser::ConfirmationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Authuser::ConfirmationsController
- Defined in:
- app/controllers/authuser/confirmations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/authuser/confirmations_controller.rb', line 13 def create @user = ::User.find_by_id_and_token(params[:user_id], params[:token]) @user.confirm_email! sign_user_in(@user) flash[:success] = translate(:confirmed_email, :scope => [:authuser, :controllers, :confirmations], :default => "Confirmed email and signed in.") redirect_to url_after_create end |
#new ⇒ Object
9 10 11 |
# File 'app/controllers/authuser/confirmations_controller.rb', line 9 def new create end |