Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
17f1a04a
Commit
17f1a04a
authored
Oct 31, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册云涯账号的时候需要填手机验证码、密码和字母验证码,当字母验证码输入错误 重新填写的时候,之前填的手机验证码和密码都要重新输入,这样容易造成手机验证码多次发送。
parent
a855dd5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SignupForm.php
src/frontend/models/SignupForm.php
+3
-2
signup.php
src/frontend/views/site/signup.php
+1
-2
No files found.
src/frontend/models/SignupForm.php
View file @
17f1a04a
...
...
@@ -21,6 +21,7 @@ class SignupForm extends Model
public
$rePassword
;
public
$from
;
public
$verifyCode
;
public
$token
;
/**
* @inheritdoc
...
...
@@ -29,7 +30,7 @@ class SignupForm extends Model
{
return
[
[
'telephone'
,
'trim'
],
[[
'telephone'
,
'from'
],
'required'
],
[[
'telephone'
,
'from'
,
'token'
],
'required'
],
[
'telephone'
,
'unique'
,
'targetClass'
=>
'\common\models\User'
,
'message'
=>
'该电话号码已经被注册'
],
[
'telephone'
,
'validateTelephone'
],
[[
'password'
,
'rePassword'
],
'required'
],
...
...
@@ -38,7 +39,7 @@ class SignupForm extends Model
[
'rePassword'
,
'compare'
,
'compareAttribute'
=>
'password'
],
[
'from'
,
'integer'
],
[
'verifyCode'
,
'required'
],
[
'verifyCode'
,
'captcha'
]
[
'verifyCode'
,
'captcha'
,
'message'
=>
'验证码不正确'
]
];
}
...
...
src/frontend/views/site/signup.php
View file @
17f1a04a
...
...
@@ -34,7 +34,7 @@ $this->registerJsFile('http://static.geetest.com/static/tools/gt.js');
</div>
<div
class=
"v-code input-wrapper"
>
<input
id=
"token"
name=
"token"
type=
"text"
class=
""
placeholder=
"验证码"
>
<input
id=
"token"
name=
"token"
type=
"text"
value=
"
<?=
$model
->
token
?>
"
class=
""
placeholder=
"验证码"
>
<span
id=
"token_tips"
class=
"tips tip-vcode"
>
<?=
$model
->
getFirstError
(
'token'
)
?>
</span>
<button
class=
"btn btn-get-vcode"
id=
"send_msg"
>
获取验证码
</button>
</div>
...
...
@@ -47,7 +47,6 @@ $this->registerJsFile('http://static.geetest.com/static/tools/gt.js');
<div
class=
"check-password input-wrapper"
>
<input
id=
"repassword"
name=
"rePassword"
type=
"password"
class=
""
placeholder=
"再次输入密码"
required=
""
>
<span
class=
"tips tip-vcode"
>
<?=
$model
->
getFirstError
(
'rePassword'
)
?>
</span>
<span
id=
"repassword_tips"
class=
"tips"
>
<?=
$model
->
getFirstError
(
'rePassword'
)
?>
</span>
</div>
<div
class=
"verify-code-box input-wrapper last-wrapper"
>
...
...
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