remove github authentication for manager
This commit is contained in:
parent
29cfdfbe91
commit
6c2eb22960
10 changed files with 1 additions and 99 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue