gui: LDAP counts as authentication (#5196)

This commit is contained in:
Boris Rybalkin 2018-09-15 07:12:00 +01:00 committed by Jakob Borg
parent 710dba7f84
commit e39dafb584

View File

@ -392,6 +392,7 @@ angular.module('syncthing.core')
$scope.openNoAuth = guiCfg.address.substr(0, 4) !== "127." $scope.openNoAuth = guiCfg.address.substr(0, 4) !== "127."
&& guiCfg.address.substr(0, 6) !== "[::1]:" && guiCfg.address.substr(0, 6) !== "[::1]:"
&& (!guiCfg.user || !guiCfg.password) && (!guiCfg.user || !guiCfg.password)
&& guiCfg.authMode !== 'ldap'
&& !guiCfg.insecureAdminAccess; && !guiCfg.insecureAdminAccess;
if (!hasConfig) { if (!hasConfig) {