gui: Automatically dismiss authentication reminder when in LDAP mode (fixes #8661) (#8663)

This commit is contained in:
Boris Rybalkin 2022-11-10 07:14:47 +00:00 committed by GitHub
parent a523fef78e
commit 1b32e9f858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ angular.module('syncthing.core')
&& guiCfg.authMode !== 'ldap'
&& !guiCfg.insecureAdminAccess;
if (guiCfg.user && guiCfg.password) {
if ((guiCfg.user && guiCfg.password) || guiCfg.authMode === 'ldap') {
$scope.dismissNotification('authenticationUserAndPassword');
}
}