ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/luckymerchan/code/ajax/ |
<?php global $DB,$ip,$func; $txt_auth_code = $CORE->input['txt_auth_code'] ?? ''; $email = $CORE->input['email'] ?? ''; $password = $CORE->input['password'] ?? ''; if(isset($_SESSION['auth_code_forgotpassword'][$email]) and $_SESSION['auth_code_forgotpassword'][$email]==$txt_auth_code){ $password_hash = password_hash($password, PASSWORD_DEFAULT, ['cost' => 12]); $DB->query("UPDATE tb_user SET user_password_default='' , user_password_hash='$password_hash' WHERE user_key='$email' "); $arr['url_ref'] = '/login.html'; $arr['status'] = 'success'; unset($_SESSION['url_ref']); }else{ $arr['url_ref'] = ''; $arr['status'] = 'fail'; } echo json_encode($arr); ?>