simple "equal to 'none'" test instead of testing all other authentication
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 5 Aug 2006 09:54:27 +0000 (09:54 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 5 Aug 2006 09:54:27 +0000 (09:54 +0000)
options

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11471 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl

index 0d116118e71950d0f3de3dc5a48e4530b1a88c01..eedd211acd5e55d53425dfdeddbf6a0c9ff73100 100755 (executable)
@@ -1447,10 +1447,7 @@ sub command_smtp_sitewide_userpass($) {
     my $auth_mech = shift(@_);
     my $default, $tmp;
     $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;
     }
     print "SMTP authentication uses IMAP username and password by default.\n";