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
b91a2679
authored
May 17, 2018
by
Teeradone-PIM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
teeradone: register 2
parent
df89422c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
www/src/Controller/UsersController.php
+2
-3
www/src/Model/Table/UsersTable.php
+1
-0
www/src/Template/Users/signup.ctp
+0
-1
No files found.
www/src/Controller/UsersController.php
View file @
b91a2679
...
...
@@ -217,15 +217,14 @@ class UsersController extends AppController
$user_personals
=
$this
->
UserPersonals
->
patchEntity
(
$user_personals
,
$this
->
request
->
getData
());
$this
->
UserPersonals
->
save
(
$user_personals
);
$this
->
Flash
->
success
(
__
(
'The register success.'
));
return
$this
->
redirect
([
'controller'
=>
'Users'
,
'action'
=>
'pinCode/'
.
$users
[
'token'
]]);
return
$this
->
redirect
([
'action'
=>
'signin'
]);
}
$this
->
Flash
->
success
(
__
(
'user or email in program
'
));
$this
->
Flash
->
error
(
__
(
'Username or Email Address already used by others.
'
));
return
$this
->
redirect
([
'action'
=>
'signup'
]);
}
else
if
(
empty
(
$this
->
request
->
data
[
'accept'
])){
$this
->
Flash
->
success
(
__
(
'please accept'
));
$this
->
Flash
->
error
(
__
(
'please accept'
));
return
$this
->
redirect
([
'action'
=>
'signup'
]);
}
$this
->
Flash
->
error
(
__
(
'The article could not be saved. Please, try again.'
));
...
...
www/src/Model/Table/UsersTable.php
View file @
b91a2679
...
...
@@ -132,6 +132,7 @@ class UsersTable extends Table {
return
$rules
;
}
/**
*
...
...
www/src/Template/Users/signup.ctp
View file @
b91a2679
...
...
@@ -35,7 +35,6 @@
</div>
</div>
<div>
<div class="form-group has-feedback">
...
...
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