Skip to content

Commit

Permalink
Merge pull request #1112 from pod4lib/1107-devise-config
Browse files Browse the repository at this point in the history
Configure devise for hotwire + turbo
  • Loading branch information
jcoyne authored Jan 31, 2025
2 parents f94ffc7 + b7b50a5 commit 06e7187
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,10 @@
# When set to false, does not sign a user in automatically after their password is
# changed. Defaults to true, so a user is signed in automatically after changing a password.
# config.sign_in_after_change_password = true

# Configurations to support for Hotwire + Turbo, default in Rails 7+
# So that login errors notifications will be displayed
# See: https://github.com/heartcombo/devise/blob/v4.9.0/CHANGELOG.md
config.responder.error_status = :unprocessable_entity
config.responder.redirect_status = :see_other
end

0 comments on commit 06e7187

Please sign in to comment.