mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
FIX: Allow user to log in another account using the same device (client_id) (#29121)
Allow user to log in another account using the same device (client_id)
This commit is contained in:
@ -61,8 +61,7 @@ class UserApiKeysController < ApplicationController
|
||||
@application_name = params[:application_name]
|
||||
scopes = params[:scopes].split(",")
|
||||
|
||||
# destroy any old keys we had
|
||||
UserApiKey.where(user_id: current_user.id, client_id: params[:client_id]).destroy_all
|
||||
UserApiKey.where(client_id: params[:client_id]).destroy_all
|
||||
|
||||
key =
|
||||
UserApiKey.create!(
|
||||
|
Reference in New Issue
Block a user