Sha256: ab11bb376061035120392dc9bc1e3e206df255eb9067103e0bce8f9cd0f78e44
Contents?: true
Size: 398 Bytes
Versions: 2
Compression:
Stored size: 398 Bytes
Contents
class RailsAuthWeb::ConfirmController < RailsAuthWeb::BaseController def email end def mobile end 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_auth-1.0.5 | app/controllers/rails_auth_web/confirm_controller.rb |
rails_auth-1.0.4 | app/controllers/the_auth_web/confirm_controller.rb |