diff --git a/app/assets/images/btn_google_signin_light_normal_web@2x.png b/app/assets/images/btn_google_signin_light_normal_web@2x.png new file mode 100644 index 0000000..c1e2c5c Binary files /dev/null and b/app/assets/images/btn_google_signin_light_normal_web@2x.png differ diff --git a/app/assets/images/btn_google_signin_light_pressed_web@2x.png b/app/assets/images/btn_google_signin_light_pressed_web@2x.png new file mode 100644 index 0000000..d01521e Binary files /dev/null and b/app/assets/images/btn_google_signin_light_pressed_web@2x.png differ diff --git a/app/views/docs/index.html.haml b/app/views/docs/index.html.haml index e687e58..0b3d9a8 100644 --- a/app/views/docs/index.html.haml +++ b/app/views/docs/index.html.haml @@ -1,5 +1,3 @@ -%p= link_to 'Login with Google', auth_at_provider_path(provider: :google) - --# - %h2 Something more helpful later - %p= raw(ap @doc) +%p + = link_to auth_at_provider_path(provider: :google) do + = image_tag 'btn_google_signin_light_normal_web@2x.png', size: '50%' diff --git a/config/initializers/sorcery.rb b/config/initializers/sorcery.rb index 6a97688..a0ee973 100644 --- a/config/initializers/sorcery.rb +++ b/config/initializers/sorcery.rb @@ -130,7 +130,7 @@ Rails.application.config.sorcery.configure do |config| config.google.key = ENV["google_key"] config.google.secret = ENV["google_secret"] - config.google.callback_url = "http://localhost:3000/oauth/callback?provider=google" + config.google.callback_url = ENV["google_callback"] config.google.user_info_mapping = { email: "email", first_name: "given_name", last_name: "family_name" } # config.vk.key = ""