Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
4efe9d95
Commit
4efe9d95
authored
Jun 07, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'取消注册验证码'
parent
e656ab55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
apps/basic/Lib/Action/PassportAction.class.php
+6
-6
apps/basic/Tpl/default/Passport/reg_w3g.html
+1
-1
No files found.
apps/basic/Lib/Action/PassportAction.class.php
View file @
4efe9d95
...
@@ -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
;
...
...
apps/basic/Tpl/default/Passport/reg_w3g.html
View file @
4efe9d95
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment