add github for openid login

This commit is contained in:
Stella Rouzi 2014-07-24 23:18:57 +03:00
parent c8e741d0ca
commit bf6b09d9f4
5 changed files with 12 additions and 2 deletions

View file

@ -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