From: <ny...@us...> - 2007-10-05 16:06:11
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24798 Modified Files: tiki-adminusers.php Log Message: [FIX] login_is_email: when using email as login, modifying the user login should imply modifying it's email with the same value. Index: tiki-adminusers.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-adminusers.php,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -r1.74 -r1.75 --- tiki-adminusers.php 20 Jul 2007 21:05:36 -0000 1.74 +++ tiki-adminusers.php 5 Oct 2007 16:06:13 -0000 1.75 @@ -361,6 +361,10 @@ $_REQUEST["user"] = $userlib->get_user_id($_REQUEST["user"]); } $userinfo = $userlib->get_userid_info($_REQUEST["user"]); + + // If login is e-mail, email field needs to be the same as name (and is generally not send) + if ( $login_is_email == 'y' && isset($_POST['name']) ) $_POST['email'] = $_POST['name']; + if (isset($_POST["edituser"]) and isset($_POST['name']) and isset($_POST['email'])) { //var_dump($_POST);die; if ($_POST['name']) { |