Browse Source

updated UserModel

v3-dev
REJack 7 years ago
parent
commit
9beb92c30e
  1. 4
      application/Models/Aauth/UserModel.php

4
application/Models/Aauth/UserModel.php

@ -8,8 +8,8 @@ class UserModel extends Model
{ {
protected $useSoftDeletes = true; protected $useSoftDeletes = true;
protected $useTimestamps = true; protected $useTimestamps = true;
protected $createdField = 'created_datetime'; protected $createdField = 'created_at';
protected $updatedField = 'updated_datetime'; protected $updatedField = 'updated_at';
protected $allowedFields = ['email', 'username', 'password']; protected $allowedFields = ['email', 'username', 'password'];
protected $beforeInsert = ['hashPassword']; protected $beforeInsert = ['hashPassword'];
protected $beforeUpdate = ['hashPassword']; protected $beforeUpdate = ['hashPassword'];

Loading…
Cancel
Save