arooo icon indicating copy to clipboard operation
arooo copied to clipboard

One-click button for admin to remove user's google/github login creds IFF alternate is available

Open compwron opened this issue 6 years ago • 0 comments

One-click button for admin to remove user's google/github login creds IFF alternate is available See https://mail.google.com/mail/u/0/#inbox/FMfcgxmSclznXQLqlLNCRfVrlTdcjcQX in the membership email

Commands to run in prod console to do this:

id = XXX # get this from member page url https://app.doubleunion.org/members/users/XXX?locale=en
user_to_change = User.find(id)
user_to_change.authentications
authentication_to_delete = user_to_change.authentications.where(provider: 'google_oauth2')
authentication_id = authentication_to_delete.id
Authentication.find(authentication.id).destroy

compwron avatar Jan 02 '20 20:01 compwron