Quellcode durchsuchen

simple "equal to 'none'" test instead of testing all other authentication
options

tokul vor 19 Jahren
Ursprung
Commit
0c436cb7f0
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen
  1. 1 4
      config/conf.pl

+ 1 - 4
config/conf.pl

@@ -1447,10 +1447,7 @@ sub command_smtp_sitewide_userpass($) {
     my $auth_mech = shift(@_);
     my $auth_mech = shift(@_);
     my $default, $tmp;
     my $default, $tmp;
     $auth_mech = lc(trim($auth_mech));
     $auth_mech = lc(trim($auth_mech));
-    if ($auth_mech ne 'cram-md5' &&
-        $auth_mech ne 'digest-md5' &&
-        $auth_mech ne 'login' &&
-        $auth_mech ne 'plain') {
+    if ($auth_mech eq 'none') {
         return;
         return;
     }
     }
     print "SMTP authentication uses IMAP username and password by default.\n";
     print "SMTP authentication uses IMAP username and password by default.\n";