dont raise runtime error if invitation token is not found
This commit is contained in:
parent
947dfaacf7
commit
7d9b1636c0
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ class InvitationsController < Devise::InvitationsController
|
|||
invitation_token = params[:user][:invitation_token]
|
||||
|
||||
if invitation_token.nil? || invitation_token.blank?
|
||||
raise I18n.t('invitations.check_token.not_found')
|
||||
redirect_to :back, :error => I18n.t('invitations.check_token.not_found')
|
||||
return
|
||||
end
|
||||
|
||||
user = User.find_by_invitation_token!(invitation_token)
|
||||
|
|
|
|||
Loading…
Reference in a new issue