/** * 验证二次密码 * @param string $path 路径 * @return string 路径 * @ 致远 */ function checkrepass($pass, $repass) { $bool['pass'] = pwdCharInt($pass); $bool['repass'] = pwdCharInt($repass); $bool['equal'] = strtolower($pass) != strtolower($repass) ? false : true; return $bool; }
public function checkPwdRule() { $pass = I('post.pass'); $pwdRule = pwdCharInt($pass); if (!$pwdRule) { exit(json_encode(array('status' => 'fail', 'msg' => '修改失败', 'pass_word' => 'notunique'))); } else { exit(json_encode(array('status' => 'success', 'msg' => '修改成功'))); } }