Beispiel #1
0
 private function SavePassword()
 {
     $password = $this->Value('Password');
     if ($password) {
         $salt = String::Start(md5(uniqid(microtime())), 8);
         $pwHash = hash('sha256', $password . $salt);
         $this->user->SetPassword($pwHash);
         $this->user->SetPasswordSalt($salt);
     }
 }