Close live connections from the model on any password change

The sessions end wherever the password changes, but only the profile
page closed the live connections, so a change from a console left a
signed-out device receiving messages until it dropped. Close them after
commit from User, logging rather than failing if the realtime service
can't be reached, since the password is saved by then.

From #371.

(cherry picked from commit c6e0105491)
This commit is contained in:
Jeremy Daer committed 2026-10-19 10:33:48 -07:00
1 parent c78f03fda7
commit 2fb599e21c
3 files changed
+19 -2

No files matched your search

@@ -8,8 +8,6 @@ class Users::ProfilesController < ApplicationController
def update
@user.update user_params
disconnect_remote_connections if @user.saved_change_to_password_digest?
redirect_to user_profile_url, notice: update_notice
end