Skip to content

Commit

Permalink
Fix other sessions not being logged out on password change (mastodon#…
Browse files Browse the repository at this point in the history
…14252)

While OAuth tokens were immediately revoked, accessing the home
controller immediately generated new OAuth tokens and "revived"
the session due to a combination of using remember_me tokens and
overwriting the `authenticate_user!` method
  • Loading branch information
Gargron authored and Mage committed Jan 14, 2022
1 parent 29f268c commit fb38868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/auth/registrations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

class Auth::RegistrationsController < Devise::RegistrationsController
include Pawoo::Auth::RegistrationsControllerConcern
include Devise::Controllers::Rememberable
include Pawoo::Auth::RegistrationsControllerConcern

layout :determine_layout

Expand Down

0 comments on commit fb38868

Please sign in to comment.