X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fauth.php;h=4206007e55a11571713526297125c927bbdd95e8;hp=732dbeb7c4256cab7f124bd1c157cb3af0a039f9;hb=a95fae0bb9d244d1fccb7531074371bc39f80a0f;hpb=ae5dddc065f9501f267c4edaf68a066835da915f diff --git a/functions/auth.php b/functions/auth.php index 732dbeb7..4206007e 100644 --- a/functions/auth.php +++ b/functions/auth.php @@ -9,7 +9,7 @@ * functions/global.php * functions/strings.php. * - * @copyright 1999-2011 The SquirrelMail Project Team + * @copyright 1999-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -363,6 +363,12 @@ function get_smtp_user(&$user, &$pass) { // directly changing the arguments array contents // in your plugin e.g., $args[0] = 'new_username'; // + // NOTE: there is another hook in class/deliver/Deliver_SMTP.class.php + // called "smtp_authenticate" that allows a plugin to run its own + // custom authentication routine - this hook here is thus slightly + // mis-named but is too old to change. Be careful that you do not + // confuse your hook names. + // $temp = array(&$user, &$pass); do_hook('smtp_auth', $temp); }