connect wip
This commit is contained in:
parent
dec10e3de9
commit
7f0677ab16
1 changed files with 7 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ class AuthorizationsController < ApplicationController
|
|||
if params[:uid].present? && params[:uid] != current_user.username
|
||||
sign_out current_user
|
||||
redirect_to url_with_prefilled_session_form
|
||||
end
|
||||
else
|
||||
@requested_scopes = params["scope"].split(',')
|
||||
@client = oauth2_authorization_request.client
|
||||
|
||||
|
|
@ -21,6 +21,7 @@ class AuthorizationsController < ApplicationController
|
|||
redirect_to "#{params[:redirect_uri]}&code=#{ac.code}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# When diaspora detects that a user is trying to authorize to an application
|
||||
# as someone other than the logged in user, we want to log out current_user,
|
||||
|
|
|
|||
Loading…
Reference in a new issue