mirror of
https://github.com/sigmasternchen/MyTube
synced 2025-03-15 21:08: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);
|
// $manager->persist($product);
|
||||||
|
|
||||||
$admin = new User();
|
$admin = new User();
|
||||||
$admin->setName("admin");
|
|
||||||
$admin->setEmail("admin@mytube");
|
$admin->setEmail("admin@mytube");
|
||||||
|
$admin->setName("Administrator");
|
||||||
$admin->setPassword($this->passwordEncoder->encodePassword($admin, "password"));
|
$admin->setPassword($this->passwordEncoder->encodePassword($admin, "password"));
|
||||||
$admin->setRoles(["ROLE_ADMIN"]);
|
$admin->setRoles(["ROLE_ADMIN"]);
|
||||||
$manager->persist($admin);
|
$manager->persist($admin);
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<th>
|
<th>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Username
|
Name
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Email
|
Email
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
{{ user.name }}
|
{{ user.name }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
[not yet implemented]
|
{{ user.email }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% for role in user.getReadableRoles() %}
|
{% for role in user.getReadableRoles() %}
|
||||||
|
|
Loading…
Reference in a new issue