Added an simple admin page for users.

This commit is contained in:
Jan Böhmer 2019-04-28 14:18:11 +02:00
parent 0826f5e6aa
commit 8a4d665d2a
12 changed files with 276 additions and 30 deletions

View file

@ -60,7 +60,7 @@ class User extends NamedDBElement implements UserInterface, HasPermissionsInterf
* @ORM\Column(type="string", length=180, unique=true)
* @Assert\NotBlank
*/
protected $name;
protected $name = "";
/**
* //@ORM\Column(type="json").
@ -77,7 +77,7 @@ class User extends NamedDBElement implements UserInterface, HasPermissionsInterf
* @var bool True if the user needs to change password after log in
* @ORM\Column(type="boolean")
*/
protected $need_pw_change;
protected $need_pw_change = true;
/**
* @var string|null The first name of the User
@ -413,4 +413,9 @@ class User extends NamedDBElement implements UserInterface, HasPermissionsInterf
return $this;
}
public function __toString()
{
return $this->getFullName(true);
}
}