Commit b91a2679 by Teeradone-PIM

teeradone: register 2

parent df89422c
...@@ -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.'));
......
...@@ -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.
......
...@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment