mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-07 02:44:22 +00:00
Moved passwordhash() from yllapito controller to user model, where it belongs
This commit is contained in:
@@ -12,6 +12,14 @@ class User_model extends MY_Model
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function passwordhash($password = null)
|
||||
{
|
||||
return hash(
|
||||
'ripemd160',
|
||||
$password . $this->config->item('encryption_key')
|
||||
);
|
||||
}
|
||||
|
||||
protected function timestamps($ecard)
|
||||
{
|
||||
$ecard['created_at'] = $ecard['updated_at'] = date('Y-m-d H:i:s');
|
||||
|
||||
Reference in New Issue
Block a user