Class: Auth::ConfirmationsController

Inherits:
Devise::ConfirmationsController
  • Object
show all
Defined in:
app/controllers/auth/confirmations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



9
10
11
# File 'app/controllers/auth/confirmations_controller.rb', line 9

def create
  super
end

#newObject



5
6
7
# File 'app/controllers/auth/confirmations_controller.rb', line 5

def new
  super
end

#showObject



13
14
15
16
17
18
19
# File 'app/controllers/auth/confirmations_controller.rb', line 13

def show
  self.resource = resource_class.confirm_by_token(params[:confirmation_token])

  render status: :unprocessable_entity and return unless resource.errors.empty?

  redirect_to "#{ENV['FRONTEND_URL']}/signin?confirmed=true"
end