Class: Auth::ConfirmController
- Inherits:
-
BaseController
- Object
- BaseController
- Auth::ConfirmController
- Defined in:
- app/controllers/auth/confirm_controller.rb
Instance Method Summary collapse
Instance Method Details
#email ⇒ Object
3 4 5 |
# File 'app/controllers/auth/confirm_controller.rb', line 3 def email end |
#mobile ⇒ Object
7 8 9 |
# File 'app/controllers/auth/confirm_controller.rb', line 7 def mobile end |
#update ⇒ Object
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.) else redirect_back(fallback_location: root_url, error: '用户不存在') end end |