We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f94ffc7 + b7b50a5 commit 06e7187Copy full SHA for 06e7187
config/initializers/devise.rb
@@ -361,4 +361,10 @@
361
# When set to false, does not sign a user in automatically after their password is
362
# changed. Defaults to true, so a user is signed in automatically after changing a password.
363
# config.sign_in_after_change_password = true
364
+
365
+ # Configurations to support for Hotwire + Turbo, default in Rails 7+
366
+ # So that login errors notifications will be displayed
367
+ # See: https://github.com/heartcombo/devise/blob/v4.9.0/CHANGELOG.md
368
+ config.responder.error_status = :unprocessable_entity
369
+ config.responder.redirect_status = :see_other
370
end
0 commit comments