Tweak devise modules list
This commit is contained in:
parent
4d4bdd00c6
commit
2e62aaf0c8
3 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- if ENV['OSEM_ICHAIN_ENABLED'] != 'true'
|
||||
.container
|
||||
.container.panel
|
||||
= form_tag(new_user_session_path, class: '') do
|
||||
%legend
|
||||
%span
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue