current_user.tokens.delete_all
session[:user] = current_user.id
session[:fingerprint] = current_user.fingerprint
- redirect_to edit_account_path
elsif token
flash[:error] = t "confirmations.confirm_email.failure"
- redirect_to edit_account_path
else
flash[:error] = t "confirmations.confirm_email.unknown_token"
end
+
+ redirect_to edit_account_path
end
end