add github for openid login
This commit is contained in:
parent
c8e741d0ca
commit
bf6b09d9f4
5 changed files with 12 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ class User < ActiveRecord::Base
|
|||
# :lockable, :timeoutable and :omniauthable
|
||||
devise :database_authenticatable, :registerable,
|
||||
:recoverable, :rememberable, :trackable, :validatable, :confirmable,
|
||||
:omniauthable, omniauth_providers: [:suse, :google, :facebook]
|
||||
:omniauthable, omniauth_providers: [:suse, :google, :facebook, :github]
|
||||
|
||||
has_and_belongs_to_many :roles
|
||||
has_many :openids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue