Guest User

Untitled

a guest
Oct 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public function beforeSave(){
  2. $salt = "Acrec_$";
  3. $hashed = hash('sha512', $salt . $this->password);
  4. $this->password = $hashed;
  5. }
  6.  
  7. $this->auth->check([
  8. 'email' => $this->request->getPost('email'),
  9. 'password' => $this->request->getPost('password'),
  10. 'remember' => $this->request->getPost('remember')
  11. ]);
Add Comment
Please, Sign In to add comment