Commit 0ce731527612d12e31a245f982b79d836647a1fc
1 parent
e8f6202d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
oauth_client: skip login_required filter in oauth controller
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
plugins/oauth_client/controllers/public/oauth_client_plugin_public_controller.rb
1 | class OauthClientPluginPublicController < PublicController | 1 | class OauthClientPluginPublicController < PublicController |
2 | 2 | ||
3 | + skip_before_filter :login_required | ||
4 | + | ||
3 | def callback | 5 | def callback |
4 | auth = request.env["omniauth.auth"] | 6 | auth = request.env["omniauth.auth"] |
5 | user = environment.users.find_by_email(auth.info.email) | 7 | user = environment.users.find_by_email(auth.info.email) |