forked from External/greenlight
GRN2-107: Add office365 auth (#616)
* add office365 auth * Delete conflicting file
This commit is contained in:
committed by
Jesus Federico
parent
40b05b1626
commit
fc18976b6d
@ -70,7 +70,7 @@ class User < ApplicationRecord
|
||||
# Provider attributes.
|
||||
def auth_name(auth)
|
||||
case auth['provider']
|
||||
when :microsoft_office365
|
||||
when :office365
|
||||
auth['info']['display_name']
|
||||
else
|
||||
auth['info']['name']
|
||||
@ -97,7 +97,7 @@ class User < ApplicationRecord
|
||||
when :twitter
|
||||
auth['info']['image'].gsub("http", "https").gsub("_normal", "")
|
||||
else
|
||||
auth['info']['image'] unless auth['provider'] == :microsoft_office365
|
||||
auth['info']['image']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user