mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Added form to allow a user to change its own password.
This commit is contained in:
parent
62fe4afd74
commit
1b8b5d927f
3 changed files with 73 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue