Skip to content

Commit

Permalink
Merge pull request #952 from ita-social-projects/935-sign-in-via-google
Browse files Browse the repository at this point in the history
935 sign in via google
  • Loading branch information
loqimean authored Dec 1, 2024
2 parents 4cf826e + 841c008 commit c2f816b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="flex flex-row-reverse flex-wrap content-center gap-3">
<%= f.submit t(".log_in"), class: "btn w-full font-bold text-center btn-green" %>

<%#= render "devise/shared/links" %>
<%= render "devise/shared/links" %>
</div>
<% end %>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/devise/shared/_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<fieldset class="auth-login-links">
<legend class="float-none w-auto text-sm px-2.5 mx-auto"><%= t("devise.omniauth_callbacks.continue_with") %></legend>

<%#= link_to user_google_oauth2_omniauth_authorize_path do %>
<%#= image_tag("icons/google.svg", alt: "Google Sign In", class: "w-14") %>
<%# end %>
<%= link_to user_google_oauth2_omniauth_authorize_path do %>
<%= image_tag("icons/google.svg", alt: "Google Sign In", class: "w-14") %>
<% end %>
</fieldset>
</div>
<% end %>
8 changes: 4 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# end
mount Sidekiq::Web => "/sidekiq"

# devise_for :users, only: :omniauth_callbacks,
# controllers: { omniauth_callbacks:
# "users/omniauth_callbacks" }
devise_for :users, only: :omniauth_callbacks,
controllers: { omniauth_callbacks:
"users/omniauth_callbacks" }

get "/", to: "application#redirection", as: :root_redirection

Expand All @@ -19,7 +19,7 @@
end

scope "/(:locale)", locale: /uk|en/ do
devise_for :users, only: [:session]
devise_for :users, only: [:session], skip: [:omniauth_callbacks, :registration]
# devise_for :users, skip: [:omniauth_callbacks, :registration]

# as :user do
Expand Down

0 comments on commit c2f816b

Please sign in to comment.