Tweak devise modules list

This commit is contained in:
Michael Ball 2019-12-19 03:32:52 -08:00
parent 4d4bdd00c6
commit 2e62aaf0c8
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ class User < ApplicationRecord
else
[:database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :confirmable,
:omniauthable, omniauth_providers: [:suse, :google, :facebook, :github]]
:omniauthable, omniauth_providers: [:google, :discourse]]
end
devise(*devise_modules)

View file

@ -1,7 +1,7 @@
.text-center
.btn-group.btn-group-lg#openid-btn-grp
- omniauth_configured.each do |provider|
- if provider == :discourse
- if provider.to_s != :discourse
= link_to "user_#{provider}_omniauth_authorize".to_sym, class: "btn btn-success btn-lg",
id: "omniauth-#{provider}",
title: "Your #{provider} login" do

View file

@ -1,5 +1,5 @@
- if ENV['OSEM_ICHAIN_ENABLED'] != 'true'
.container
.container.panel
= form_tag(new_user_session_path, class: '') do
%legend
%span