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
Show 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
...
@@ -217,15 +217,14 @@ class UsersController extends AppController
$user_personals
=
$this
->
UserPersonals
->
patchEntity
(
$user_personals
,
$this
->
request
->
getData
());
$user_personals
=
$this
->
UserPersonals
->
patchEntity
(
$user_personals
,
$this
->
request
->
getData
());
$this
->
UserPersonals
->
save
(
$user_personals
);
$this
->
UserPersonals
->
save
(
$user_personals
);
$this
->
Flash
->
success
(
__
(
'The register success.'
));
$this
->
Flash
->
success
(
__
(
'The register success.'
));
return
$this
->
redirect
([
'controller'
=>
'Users'
,
'action'
=>
'pinCode/'
.
$users
[
'token'
]]);
return
$this
->
redirect
([
'controller'
=>
'Users'
,
'action'
=>
'pinCode/'
.
$users
[
'token'
]]);
return
$this
->
redirect
([
'action'
=>
'signin'
]);
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'
]);
return
$this
->
redirect
([
'action'
=>
'signup'
]);
}
else
if
(
empty
(
$this
->
request
->
data
[
'accept'
])){
}
else
if
(
empty
(
$this
->
request
->
data
[
'accept'
])){
$this
->
Flash
->
success
(
__
(
'please accept'
));
$this
->
Flash
->
error
(
__
(
'please accept'
));
return
$this
->
redirect
([
'action'
=>
'signup'
]);
return
$this
->
redirect
([
'action'
=>
'signup'
]);
}
}
$this
->
Flash
->
error
(
__
(
'The article could not be saved. Please, try again.'
));
$this
->
Flash
->
error
(
__
(
'The article could not be saved. Please, try again.'
));
...
...
www/src/Model/Table/UsersTable.php
View file @
b91a2679
...
@@ -133,6 +133,7 @@ class UsersTable extends Table {
...
@@ -133,6 +133,7 @@ class UsersTable extends Table {
return
$rules
;
return
$rules
;
}
}
/**
/**
*
*
* Returns the database connection name to use by default.
* Returns the database connection name to use by default.
...
...
www/src/Template/Users/signup.ctp
View file @
b91a2679
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
</div>
</div>
<div>
<div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-md-12">
<div class="col-md-12">
...
...
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