Commit b91a2679 by Teeradone-PIM

teeradone: register 2

parent df89422c
......@@ -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.'));
......
......@@ -132,6 +132,7 @@ class UsersTable extends Table {
return $rules;
}
/**
*
......
......@@ -35,7 +35,6 @@
</div>
</div>
<div>
<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