remove github authentication for manager

This commit is contained in:
Christophe Robillard 2020-11-03 17:36:35 +01:00
parent 29cfdfbe91
commit 6c2eb22960
10 changed files with 1 additions and 99 deletions

View file

@ -22,11 +22,7 @@
class Administration < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :rememberable, :trackable, :validatable, :omniauthable, :lockable, :async, omniauth_providers: [:github]
def self.from_omniauth(params)
find_by(email: params["info"]["email"])
end
devise :database_authenticatable, :rememberable, :trackable, :validatable, :lockable, :async
def invite_admin(email)
user = User.create_or_promote_to_administrateur(email, SecureRandom.hex)