Esempio n. 1
0
 public function rehashPasswordIfNeeded($password)
 {
     if (!Password::needsRehash($this->password)) {
         return false;
     }
     $this->password = Password::hash($password);
     return true;
 }