pdontthink преди 18 години
родител
ревизия
153c6aa3b2
променени са 2 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 1 0
      ChangeLog
  2. 6 0
      functions/auth.php

+ 1 - 0
ChangeLog

@@ -214,6 +214,7 @@ Version 1.5.2 - SVN
   - No longer store all message composition sessions in the PHP session,
     since it was not made use of and in rare cases, made sessions too big
   - Composition restoration functionality now correctly restores attachments
+  - Added smtp_auth hook
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------

+ 6 - 0
functions/auth.php

@@ -277,4 +277,10 @@ function get_smtp_user(&$user, &$pass) {
         $user = $username;
         $pass = sqauth_read_password();
     }
+
+    // plugin authors note: override $user or $pass by
+    // directly changing the arguments array contents 
+    // in your plugin e.g., $args[0] = 'new_username';
+    //
+    do_hook('smtp_auth', $temp=array(&$user, &$pass));
 }