Class: Auth::ConfirmController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/auth/confirm_controller.rb

Instance Method Summary collapse

Instance Method Details

#emailObject



3
4
5
# File 'app/controllers/auth/confirm_controller.rb', line 3

def email

end

#mobileObject



7
8
9
# File 'app/controllers/auth/confirm_controller.rb', line 7

def mobile

end

#updateObject



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

def update
  @token = ConfirmToken.find_by(token: params[:token])

  if @token.verify_token?
    redirect_back(fallback_location: root_url, error: @token.errors.full_messages)
  else
    redirect_back(fallback_location: root_url, error: '用户不存在')
  end
end