Commit 8ddf3028 by Prasong Putichanchai

update css

parent 2acc936f
......@@ -448,73 +448,6 @@ class UsersController extends AppController {
}
// if ($this->request->is('post')) {
// $data = $this->request->data();
// $data['pin_pass'] = $data['pin_code_1'] . $data['pin_code_2'] . $data['pin_code_3'] . $data['pin_code_4'];
// if ($data['pin_pass'] == $users['pin_pass']) {
// $this->Flash->success(__('Pin Completed.'));
// return $this->redirect(['controller' => 'Users', 'action' => 'changeForgotpassword/' . $token]);
// }
// $this->Flash->error(__('Pin Invalid'));
// return $this->redirect(['controller' => 'Users', 'action' => 'pinCodepassword/' . $token]);
// }
// $this->set(array('token' => $token, '_serialize' => array('token')));
// }
// public function changePassword($token = null) {
// $id = $this->Auth->user('id');
// $this->viewBuilder()->layout('blank');
// $users = $this->Users->get($id);
// if ($this->request->is('post')) {
// $hasher = new DefaultPasswordHasher();
// $password = $this->request->data['password'];
// $confirm_password = $this->request->data['confirm_password'];
// $oldpassword = $this->request->data['oldpassword'];
// $this->request->data['password'] = $hasher->hash($this->request->data['password']);
// //------- เทียบ password ที่เข้ารหัส ---------------password_verify($password,hashed_password)---------------------------
// if (password_verify($oldpassword, $users['password'])) {
// $users = $this->Users->patchEntity($users, $this->request->getData());
// $this->Users->save($users);
// $this->Flash->success(__('change password success'));
// $this->Flash->success(__('You are now logged out.'));
// return $this->redirect(['action' => 'signout']);
// } else {
// $this->Flash->error(__('Invalid password.'));
// return $this->redirect(['action' => 'change-password']);
// }
// }
// $this->set(array('token' => $token, '_serialize' => array('token')));
// }
// public function changeForgotpassword($token = null) {
// $this->viewBuilder()->layout('blank');
// $users = $this->Users->find('all', [
// 'conditions' => [
// 'Users.token' => $token
// ]
// ])->first();
// if ($this->request->is('post')) {
// $hasher = new DefaultPasswordHasher();
// $password = $this->request->data['password'];
// //$confirm_password = $this->request->data['confirm_password'];
// $this->request->data['password'] = $hasher->hash($this->request->data['password']);
// //------- เทียบ password ที่เข้ารหัส ---------------password_verify($password,hashed_password)---------------------------
// $users = $this->Users->patchEntity($users, $this->request->getData());
// if ($this->Users->save($users)) {
// $this->Flash->success(__('change password success'));
// return $this->redirect(['action' => 'signin']);
// }
// $this->Flash->error(__('Invalid password.'));
// return $this->redirect(['action' => 'change_forgotpassword']);
// }
// $this->set(array('token' => $token, '_serialize' => array('token')));
// }
#---------------------------------------------------------------------------------------------------
......
......@@ -505,7 +505,15 @@ use Cake\I18n\Time;
}
.form-control-reg{
height : 50px;
padding: 5px;
vertical-align: middle;
font-family: 'cordia new' !important;
}
select {
font-family: 'cordia new' !important;
}
.box-card {
......
......@@ -469,7 +469,14 @@ function check_notnum() {
color:green;
}
.from-control-reg {
height:50px;
padding: 5px;
vertical-align: middle;
font-family: 'cordia new' !important;
}
select {
font-family: 'cordia new' !important;
}
</style>
......
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