Esempio n. 1
0
 /**
  * perform one-way encryption on the password before we store it in	the database
  */
 protected function afterValidate()
 {
     parent::afterValidate();
     $this->password = $this->encrypt($this->password);
 }