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 {
* @return \Cake\Validation\Validator
*/
public
function
validationDefault
(
Validator
$validator
)
{
$validator
->
allowEmpty
(
'id'
,
'create'
);
//
$validator
//
->allowEmpty('id', 'create');
$validator
->
scalar
(
'username'
)
->
allowEmpty
(
'username'
);
//
$validator
//
->scalar('username')
//
->allowEmpty('username');
$validator
->
scalar
(
'password'
)
->
allowEmpty
(
'password'
);
//
$validator
//
->scalar('password')
//
->allowEmpty('password');
$validator
->
integer
(
'point'
)
->
allowEmpty
(
'point'
);
//
$validator
//
->integer('point')
//
->allowEmpty('point');
$validator
->
boolean
(
'is_used'
)
->
allowEmpty
(
'is_used'
);
//
$validator
//
->boolean('is_used')
//
->allowEmpty('is_used');
$validator
->
scalar
(
'dynamic_key'
)
->
allowEmpty
(
'dynamic_key'
);
//
$validator
//
->scalar('dynamic_key')
//
->allowEmpty('dynamic_key');
$validator
->
date
(
'dynamic_key_expiry'
)
->
allowEmpty
(
'dynamic_key_expiry'
);
//
$validator
//
->date('dynamic_key_expiry')
//
->allowEmpty('dynamic_key_expiry');
$validator
->
scalar
(
'token'
)
->
allowEmpty
(
'token'
);
//
$validator
//
->scalar('token')
//
->allowEmpty('token');
$validator
->
date
(
'token_expiry'
)
->
allowEmpty
(
'token_expiry'
);
//
$validator
//
->date('token_expiry')
//
->allowEmpty('token_expiry');
$validator
->
requirePresence
(
'created_by'
,
'create'
)
->
notEmpty
(
'created_by'
);
//
$validator
//
->requirePresence('created_by', 'create')
//
->notEmpty('created_by');
$validator
->
allowEmpty
(
'modified_by'
);
//
$validator
//
->allowEmpty('modified_by');
$validator
->
scalar
(
'pin_code'
)
->
allowEmpty
(
'pin_code'
);
//
$validator
//
->scalar('pin_code')
//
->allowEmpty('pin_code');
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