Fixed issue with ldap images (#926)

This commit is contained in:
Ahmad Farhat
2020-01-22 16:39:29 -05:00
committed by farhatahmad
parent 005ec84c73
commit 8a8eee52fe
2 changed files with 48 additions and 0 deletions

View File

@ -48,6 +48,9 @@ module AuthValues
case auth['provider']
when :twitter
auth['info']['image'].gsub("http", "https").gsub("_normal", "")
when :ldap
return auth['info']['image'] if auth['info']['image']&.starts_with?("http")
""
else
auth['info']['image']
end