Add a way to define user password on subscribe.php

This commit is contained in:
Némunaire 2012-06-20 12:18:52 +02:00
commit 49f16f5f12
2 changed files with 71 additions and 23 deletions

View file

@ -128,6 +128,11 @@ class User
return hash("whirlpool", $username.':'.$password);
}
public function setPassword($password)
{
$this->password = $this->getPassword($this->username, $password);
}
public function set_validated($validated)
{
$this->validated = $validated;