Enable Wordpress Oauth login and registration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user