Added form to allow a user to change its own password.

This commit is contained in:
Jan Böhmer 2019-03-15 18:38:45 +01:00
parent 62fe4afd74
commit 1b8b5d927f
3 changed files with 73 additions and 2 deletions

View file

@ -153,12 +153,18 @@ class User extends NamedDBElement implements UserInterface
/**
* @see UserInterface
* Gets the password hash for this entity.
*/
public function getPassword(): string
{
return (string) $this->password;
}
/**
* Sets the password hash for this user.
* @param string $password
* @return User
*/
public function setPassword(string $password): self
{
$this->password = $password;