mirror of
https://github.com/sigmasternchen/MyTube
synced 2025-03-15 04:48:55 +00:00
display email in user list; renamed admin to Administrator
This commit is contained in:
parent
34fcd20940
commit
0dc6d35c56
2 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,8 @@ class UserFixtures extends Fixture
|
|||
// $manager->persist($product);
|
||||
|
||||
$admin = new User();
|
||||
$admin->setName("admin");
|
||||
$admin->setEmail("admin@mytube");
|
||||
$admin->setName("Administrator");
|
||||
$admin->setPassword($this->passwordEncoder->encodePassword($admin, "password"));
|
||||
$admin->setRoles(["ROLE_ADMIN"]);
|
||||
$manager->persist($admin);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<th>
|
||||
</th>
|
||||
<th>
|
||||
Username
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
Email
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{ user.name }}
|
||||
</td>
|
||||
<td>
|
||||
[not yet implemented]
|
||||
{{ user.email }}
|
||||
</td>
|
||||
<td>
|
||||
{% for role in user.getReadableRoles() %}
|
||||
|
|
Loading…
Reference in a new issue