Commit f8dcf63eb3a5e7dcd7a939256d9c9ef8854282e0

Authored by Matheus Miranda Lacerda
1 parent 7da907b4

Fix bug that would not allow login after using signup form

Signed-off-by: Victor Navarro <victor.matias.navarro@gmail.com>
Signed-off-by: Vitor Barbosa <vitornga15@gmail.com>
Signed-off-by: Matheus Miranda <matheusmirandalacerda@gmail.com>
plugins/oauth_client/lib/oauth_client_plugin.rb
... ... @@ -89,7 +89,8 @@ class OauthClientPlugin &lt; Noosfero::Plugin
89 89  
90 90 def account_controller_filters
91 91 {
92   - :type => 'before_filter', :method_name => 'signup',
  92 + :type => 'before_filter', :method_name => 'xablau_signup',
  93 + :options => { :only => 'signup' },
93 94 :block => proc {
94 95 auth = session[:oauth_data]
95 96  
... ...
plugins/oauth_client/views/account/_oauth_signup.html.erb
1 1 <%= hidden_field_tag 'return_to', '/' %>
2 2  
3 3 <style>
4   - #signup-password, #signup-password-confirmation, #signup-email {
  4 + #signup-email {
5 5 display: none;
6 6 }
7 7 </style>
... ...