diff --git a/e107_handlers/user_select_class.php b/e107_handlers/user_select_class.php index 0f928bc9b..0e2a8f988 100644 --- a/e107_handlers/user_select_class.php +++ b/e107_handlers/user_select_class.php @@ -12,7 +12,7 @@ * $Id$ */ -// DEPRECATED - SUBJECT TO REMOVAL +/* @DEPRECATED - SUBJECT TO REMOVAL */ // Possible replacements: $frm->userpicker(); include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_user_select.php"); diff --git a/fpw.php b/fpw.php index 9d5016e63..5aadcc34e 100644 --- a/fpw.php +++ b/fpw.php @@ -206,11 +206,17 @@ if(e_QUERY) //$do_log['user_name'] = $tp -> toDB($username, true); $do_log['user_loginname'] = $loginName; $do_log['activation_code'] = $tmpinfo; - $do_log['user_password'] = $mdnewpw; + $do_log['user_password'] = $newpw; + $do_log['user_password_hash'] = $mdnewpw; $admin_log->user_audit(USER_AUDIT_PW_RES,$do_log,0,$do_log['user_name']); // Update password in database $sql->update('user', "`user_password`='{$mdnewpw}' WHERE `user_loginname`='".$loginName."' "); + + if(getperms('0')) + { + echo "
".print_a($do_log, true)."
"; + } // Prepare new information to display to user if((integer) e107::getPref('allowEmailLogin') > 0) @@ -297,7 +303,7 @@ if (isset($_POST['pwsubmit'])) // Check if password reset was already requested if ($result = $sql->select('tmp', '*', "`tmp_ip` = 'pwreset' AND `tmp_info` LIKE '".$row['user_loginname'].FPW_SEPARATOR."%'")) { - fpw_error(LAN_FPW4); + fpw_error(LAN_FPW4); exit; } @@ -369,6 +375,13 @@ if(deftrue('BOOTSTRAP')) { // TODO do we want the
element outside the template? $FPW_TABLE = ""; + + if(getperms('0')) + { + $FPW_TABLE.= "
Logged in as admin
"; + } + + $FPW_TABLE .= e107::getCoreTemplate('fpw','form'); $FPW_TABLE .= "
"; $caption = deftrue('LAN_FPW_100',"Forgot your password?");