Commit 4efe9d95 by Administrator

'取消注册验证码'

parent e656ab55
...@@ -585,9 +585,9 @@ class PassportAction extends CommonAction ...@@ -585,9 +585,9 @@ class PassportAction extends CommonAction
$this->mzError($this->_register_model->getError()); $this->mzError($this->_register_model->getError());
} }
//检查验证码 //检查验证码
if (!captcha_check($_POST['verify'], 'register')) { // if (!captcha_check($_POST['verify'], 'register')) {
$this->mzError('验证码错误'); // $this->mzError('验证码错误');
} // }
$map['login'] = $email; $map['login'] = $email;
$map['email'] = $email; $map['email'] = $email;
} else { } else {
...@@ -595,9 +595,9 @@ class PassportAction extends CommonAction ...@@ -595,9 +595,9 @@ class PassportAction extends CommonAction
$this->mzError("手机号格式错误"); $this->mzError("手机号格式错误");
} }
$phonedata = M('ResphoneCode')->where(['phone'=>$phone,'stime'=>['gt',time()-300]])->order('stime desc')->field('phone,code')->find(); $phonedata = M('ResphoneCode')->where(['phone'=>$phone,'stime'=>['gt',time()-300]])->order('stime desc')->field('phone,code')->find();
if ($phone != $phonedata['phone'] || $_POST['verify'] != $phonedata['code']) { // if ($phone != $phonedata['phone'] || $_POST['verify'] != $phonedata['code']) {
$this->mzError("验证码错误"); // $this->mzError("验证码错误");
} // }
$map['phone'] = $phone; $map['phone'] = $phone;
$map['login'] = $phone; $map['login'] = $phone;
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<div id="app"> <div id="app">
<div class="layout_v" style="margin-top: 0.625rem;"> <div class="layout_v" style="margin-top: 0.625rem;">
<van-field v-model="phone" label="手机号" type="number" placeholder="请输入手机号"></van-field> <van-field v-model="phone" label="手机号" type="number" placeholder="请输入手机号"></van-field>
<van-field v-model="code" label="验证码" type="digit" maxlength="6" placeholder="请输入验证码"> <!-- <van-field v-model="code" label="验证码" type="digit" maxlength="6" placeholder="请输入验证码">-->
<template #button> <template #button>
<div @click="onSendCode" class="layout_center" :class="valid ? 'button_green' : 'button_disable'"> <div @click="onSendCode" class="layout_center" :class="valid ? 'button_green' : 'button_disable'">
<span class="self_center">{{codeText}}</span> <span class="self_center">{{codeText}}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment