Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]#92_ShopモデルへのGoogle認証機能追加 #98

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

kazu-0226
Copy link
Owner

shopモデルへのGoogle認証機能追加

今回get "/auth/google_oauth2" を変更するとリクエストがうまくいかず、
shopとuserモデルの切り分けがうまくできなかったため、リクエスト時にtypeを渡してusersのomniauth_callbacks_controller.rb で処理を分ける

<%= link_to "log in", google_oauth_path(type: "shop"), class: "btn btn-primary" %><br />
<%= link_to "log in", google_oauth_path(type: "user"), class: "btn btn-primary" %><br />

@kazu-0226 kazu-0226 merged commit cdf2543 into develop Oct 11, 2020
@kazu-0226 kazu-0226 linked an issue Oct 11, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ShopモデルへのGoogle認証機能追加
1 participant