From f8dcf63eb3a5e7dcd7a939256d9c9ef8854282e0 Mon Sep 17 00:00:00 2001 From: Matheus Miranda Date: Mon, 25 Jul 2016 14:30:47 -0300 Subject: [PATCH] Fix bug that would not allow login after using signup form --- plugins/oauth_client/lib/oauth_client_plugin.rb | 3 ++- plugins/oauth_client/views/account/_oauth_signup.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/oauth_client/lib/oauth_client_plugin.rb b/plugins/oauth_client/lib/oauth_client_plugin.rb index eb7dff0..a39e885 100644 --- a/plugins/oauth_client/lib/oauth_client_plugin.rb +++ b/plugins/oauth_client/lib/oauth_client_plugin.rb @@ -89,7 +89,8 @@ class OauthClientPlugin < Noosfero::Plugin def account_controller_filters { - :type => 'before_filter', :method_name => 'signup', + :type => 'before_filter', :method_name => 'xablau_signup', + :options => { :only => 'signup' }, :block => proc { auth = session[:oauth_data] diff --git a/plugins/oauth_client/views/account/_oauth_signup.html.erb b/plugins/oauth_client/views/account/_oauth_signup.html.erb index 346c0dd..2365bcb 100644 --- a/plugins/oauth_client/views/account/_oauth_signup.html.erb +++ b/plugins/oauth_client/views/account/_oauth_signup.html.erb @@ -1,7 +1,7 @@ <%= hidden_field_tag 'return_to', '/' %> -- libgit2 0.21.2