[IMPROVEMENT] Checks if custom OAuth button should be shown (#1140)

This commit is contained in:
Filipe Brito 2019-08-22 16:24:27 -03:00 committed by Diego Mello
parent 8309c45c64
commit 3a247454ca
1 changed files with 4 additions and 2 deletions

View File

@ -806,9 +806,11 @@ const RocketChat = {
} }
}, },
_determineAuthType(services) { _determineAuthType(services) {
const { name, custom, service } = services; const {
name, custom, showButton = true, service
} = services;
if (custom) { if (custom && showButton) {
return 'oauth_custom'; return 'oauth_custom';
} }