app/controllers/users/emails_controller.rb in shieldify-0.2.0.pre.alpha vs app/controllers/users/emails_controller.rb in shieldify-0.2.1.pre.alpha
- old
+ new
@@ -3,14 +3,14 @@
def show
token = params[:token]
user = User.confirm_email_by_token(token)
if user.errors.blank?
- response.headers['X-Email-Confirmation-Message'] = I18n.t("shieldify.controllers.emails.confirmation.success_messages")
- response.headers['X-Email-Confirmation-Status'] = 'success'
+ response.headers['X-Shfy-Message'] = I18n.t("shieldify.controllers.emails.confirmation.success_messages")
+ response.headers['X-Shfy-Status'] = 'success'
else
- response.headers['X-Email-Confirmation-Message'] = user.errors.full_messages.last
- response.headers['X-Email-Confirmation-Status'] = 'error'
+ response.headers['X-Shfy-Message'] = user.errors.full_messages.last
+ response.headers['X-Shfy-Status'] = 'error'
end
redirect_to(Shieldify::Configuration.before_confirmation_url, allow_other_host: true)
end
end
\ No newline at end of file