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 else
[:database_authenticatable, :registerable, [:database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable, :confirmable,
:omniauthable, omniauth_providers: [:suse, :google, :facebook, :github]] :omniauthable, omniauth_providers: [:google, :discourse]]
end end
devise(*devise_modules) devise(*devise_modules)

View file

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

View file

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