diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index aee764c..160e338 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -19,7 +19,6 @@ class SessionsController < ApplicationController @user = User.from_hca_token(params[:code], redirect_uri) - # if @user&.persisted? if @user&.persisted? session[:user_id] = @user.id @@ -27,7 +26,7 @@ class SessionsController < ApplicationController MigrateUserFromHackatimeJob.perform_later(@user.id) end - redirect_to root_path, notice: "Successfully signed in with Slack! Welcome!" + redirect_to root_path, notice: "Successfully signed in with Hack Club Auth! Welcome!" else redirect_to root_path, alert: "Failed to authenticate with Hack Club Auth!" end diff --git a/app/views/static_pages/index.html.erb b/app/views/static_pages/index.html.erb index 03e50c4..7396081 100644 --- a/app/views/static_pages/index.html.erb +++ b/app/views/static_pages/index.html.erb @@ -24,17 +24,15 @@ <% else %>
- Sign in with Hack Club
- <% end %>
+ <%= link_to hca_auth_path, class: "inline-flex items-center justify-center px-6 py-3 rounded text-white font-bold cursor-pointer border-none w-full my-2 bg-primary" do %>
+ Sign in with Hack Club
<% end %>
- <%= link_to slack_auth_path, class: "inline-flex items-center justify-center px-6 py-3 rounded text-white font-bold cursor-pointer border-none w-full my-2 bg-primary" do %>
-
- Sign in with Slack
- <% end %>
+ + <%= link_to slack_auth_path, class: "text-gray-400 hover:text-primary underline" do %> + Sign in with Slack instead + <% end %> +