Add a way to define user password on subscribe.php
This commit is contained in:
parent
b39b9931ef
commit
49f16f5f12
2 changed files with 71 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Reference in a new issue