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
41f4cbf8
Commit
41f4cbf8
authored
Jun 20, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
c5dc6605
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
apps/basic/Lib/Action/PassportAction.class.php
+6
-6
apps/basic/Tpl/default/Passport/reg_w3g.html
+3
-2
No files found.
apps/basic/Lib/Action/PassportAction.class.php
View file @
41f4cbf8
...
...
@@ -631,9 +631,9 @@ class PassportAction extends CommonAction
$this
->
mzError
(
$this
->
_register_model
->
getError
());
}
//检查验证码
//
if (!captcha_check($_POST['verify'], 'register')) {
//
$this->mzError('验证码错误');
//
}
if
(
!
captcha_check
(
$_POST
[
'verify'
],
'register'
))
{
$this
->
mzError
(
'验证码错误'
);
}
$map
[
'login'
]
=
$email
;
$map
[
'email'
]
=
$email
;
}
else
{
...
...
@@ -641,9 +641,9 @@ class PassportAction extends CommonAction
$this
->
mzError
(
"手机号格式错误"
);
}
$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']) {
//
$this->mzError("验证码错误");
//
}
if
(
$phone
!=
$phonedata
[
'phone'
]
||
$_POST
[
'verify'
]
!=
$phonedata
[
'code'
])
{
$this
->
mzError
(
"验证码错误"
);
}
$map
[
'phone'
]
=
$phone
;
$map
[
'login'
]
=
$phone
;
...
...
apps/basic/Tpl/default/Passport/reg_w3g.html
View file @
41f4cbf8
...
...
@@ -128,7 +128,8 @@
count
:
60
,
phone
:
""
,
code
:
""
,
password
:
""
password
:
""
,
invite_code
:
""
}
},
computed
:
{
...
...
@@ -149,7 +150,7 @@
let
uname
=
"用户"
+
parseInt
(
Math
.
random
()
*
1000
)
//获取用户昵称
let
password
=
this
.
password
//获取密码
let
mhm_id
=
''
//机构
let
invite_code
=
''
//邀请码
let
invite_code
=
"{$_GET['invite_code']}"
//邀请码
$
.
ajax
({
async
:
false
,
type
:
"POST"
,
...
...
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