Enable Wordpress Oauth login and registration

This commit is contained in:
Julian Herrero
2020-01-18 18:51:06 +07:00
parent 9bbed55d20
commit 193e51d42f
12 changed files with 181 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
sign_in_with :google_login, :google_oauth2
end
def wordpress_oauth2
sign_in_with :wordpress_login, :wordpress_oauth2
end
def after_sign_in_path_for(resource)
if resource.registering_with_oauth
finish_signup_path