Commit 9e427e1c34af3b280a60eebf47758a95a9a0a624

Authored by Victor Costa
1 parent 4f7a8626

oauth_client: fix login

plugins/oauth_client/controllers/public/oauth_client_plugin_public_controller.rb
... ... @@ -20,7 +20,6 @@ class OauthClientPluginPublicController < PublicController
20 20  
21 21 def finish
22 22 if session.delete(:oauth_client_popup) || params[:oauth_client_popup]
23   - current_user.private_token_expired? if current_user.present?
24 23 private_token = current_user.present? ? current_user.private_token : ''
25 24 render 'oauth_client_plugin_public/finish', :locals => {:private_token => private_token}, :layout => false
26 25 else
... ...