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
5e93d833
authored
May 16, 2018
by
Teeradone-PIM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
teeradone: register
parent
2905751c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
34 deletions
+34
-34
www/src/Controller/UsersController.php
+0
-0
www/src/Model/Table/UsersTable.php
+34
-34
www/src/Template/Users/signup.ctp
+0
-0
No files found.
www/src/Controller/UsersController.php
View file @
5e93d833
This diff is collapsed.
Click to expand it.
www/src/Model/Table/UsersTable.php
View file @
5e93d833
...
@@ -71,51 +71,51 @@ class UsersTable extends Table {
...
@@ -71,51 +71,51 @@ class UsersTable extends Table {
* @return \Cake\Validation\Validator
* @return \Cake\Validation\Validator
*/
*/
public
function
validationDefault
(
Validator
$validator
)
{
public
function
validationDefault
(
Validator
$validator
)
{
$validator
//
$validator
->
allowEmpty
(
'id'
,
'create'
);
//
->allowEmpty('id', 'create');
$validator
//
$validator
->
scalar
(
'username'
)
//
->scalar('username')
->
allowEmpty
(
'username'
);
//
->allowEmpty('username');
$validator
//
$validator
->
scalar
(
'password'
)
//
->scalar('password')
->
allowEmpty
(
'password'
);
//
->allowEmpty('password');
$validator
//
$validator
->
integer
(
'point'
)
//
->integer('point')
->
allowEmpty
(
'point'
);
//
->allowEmpty('point');
$validator
//
$validator
->
boolean
(
'is_used'
)
//
->boolean('is_used')
->
allowEmpty
(
'is_used'
);
//
->allowEmpty('is_used');
$validator
//
$validator
->
scalar
(
'dynamic_key'
)
//
->scalar('dynamic_key')
->
allowEmpty
(
'dynamic_key'
);
//
->allowEmpty('dynamic_key');
$validator
//
$validator
->
date
(
'dynamic_key_expiry'
)
//
->date('dynamic_key_expiry')
->
allowEmpty
(
'dynamic_key_expiry'
);
//
->allowEmpty('dynamic_key_expiry');
$validator
//
$validator
->
scalar
(
'token'
)
//
->scalar('token')
->
allowEmpty
(
'token'
);
//
->allowEmpty('token');
$validator
//
$validator
->
date
(
'token_expiry'
)
//
->date('token_expiry')
->
allowEmpty
(
'token_expiry'
);
//
->allowEmpty('token_expiry');
$validator
//
$validator
->
requirePresence
(
'created_by'
,
'create'
)
//
->requirePresence('created_by', 'create')
->
notEmpty
(
'created_by'
);
//
->notEmpty('created_by');
$validator
//
$validator
->
allowEmpty
(
'modified_by'
);
//
->allowEmpty('modified_by');
$validator
//
$validator
->
scalar
(
'pin_code'
)
//
->scalar('pin_code')
->
allowEmpty
(
'pin_code'
);
//
->allowEmpty('pin_code');
return
$validator
;
return
$validator
;
}
}
...
...
www/src/Template/Users/signup.ctp
View file @
5e93d833
This diff is collapsed.
Click to expand it.
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