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.'));
......
...@@ -132,6 +132,7 @@ class UsersTable extends Table { ...@@ -132,6 +132,7 @@ class UsersTable extends Table {
return $rules; return $rules;
} }
/** /**
* *
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
</div> </div>
</div> </div>
<div> <div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
......
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