role field added to user form. Works with select or radio button, not with checkbox...

This commit is contained in:
2022-03-09 15:49:50 +01:00
parent 1453fdcd18
commit 3ebeda9840
3 changed files with 26 additions and 12 deletions

View File

@@ -228,7 +228,7 @@ class User implements AdvancedUserInterface
$roles = $this->roles;
$roles[] = 'ROLE_USER';
return array_unique($roles);
return $roles;
}
public function getSalt(): ?string