Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e9769db3
authored
Jun 01, 2018
by
Teeradone Darunnat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
teeradone
parent
11362870
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
www/src/Controller/UsersController.php
+1
-1
www/src/Template/Users/signup.ctp
+4
-4
No files found.
www/src/Controller/UsersController.php
View file @
e9769db3
...
...
@@ -177,7 +177,7 @@ class UsersController extends AppController {
$dateNow
=
$today
->
i18nFormat
(
'yyyy-MM-dd HH:mm:ss'
);
$hasher
=
new
DefaultPasswordHasher
();
$firstname
=
$this
->
request
->
data
[
'firstname'
];
// $
phone_no = $this->request->data['phon
e_no'];
// $
moblie_no = $this->request->data['mobli
e_no'];
$lastname
=
$this
->
request
->
data
[
'lastname'
];
$master_country_id
=
$this
->
request
->
data
[
'master_country_id'
];
$master_province_id
=
$this
->
request
->
data
[
'master_province_id'
];
...
...
www/src/Template/Users/signup.ctp
View file @
e9769db3
...
...
@@ -92,7 +92,7 @@
<div class="form-group has-feedback">
<div class="col-md-12">
<label class="label-text-sub"><?php echo __('Phone Number (Mobile)');?><em>* </em></label>
<input type="text" name="
phone_no" id="phon
e_no" onkeypress="check_phone();" value="" maxlength="10" placeholder="000-000-0000" class="mask form-control-reg border-bottom-from">
<input type="text" name="
moblie_no" id="mobli
e_no" onkeypress="check_phone();" value="" maxlength="10" placeholder="000-000-0000" class="mask form-control-reg border-bottom-from">
</div>
</div>
</div>
...
...
@@ -294,12 +294,12 @@
return false;
}
var
phone_no = document.getElementById("phon
e_no").value;
if (
phone_no == null || phon
e_no == "") {
var
moblie_no = document.getElementById("mobli
e_no").value;
if (
moblie_no == null || mobli
e_no == "") {
alert("Please enter your phone number.");
return false;
}
if(document.getElementById("
phon
e_no").value.length != 10)
if(document.getElementById("
mobli
e_no").value.length != 10)
{
alert('Please enter a 10 digit phone number.');
return false;
...
...
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