@@ -232,9 +232,19 @@ |
||
| 232 | 232 | /** |
| 233 | 233 | * FOSUserBundle needs groups to have roles. We don't. |
| 234 | 234 | */ |
| 235 | - public function getRoles() { return []; } |
|
| 236 | - public function setRoles(array $roles) { return $this; } |
|
| 237 | - public function addRole($role) { return $this; } |
|
| 238 | - public function removeRole($role) { return $this; } |
|
| 239 | - public function hasRole($role) { return false; } |
|
| 235 | + public function getRoles() |
|
| 236 | + { |
|
| 237 | +return []; } |
|
| 238 | + public function setRoles(array $roles) |
|
| 239 | + { |
|
| 240 | +return $this; } |
|
| 241 | + public function addRole($role) |
|
| 242 | + { |
|
| 243 | +return $this; } |
|
| 244 | + public function removeRole($role) |
|
| 245 | + { |
|
| 246 | +return $this; } |
|
| 247 | + public function hasRole($role) |
|
| 248 | + { |
|
| 249 | +return false; } |
|
| 240 | 250 | } |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use FOS\UserBundle\Entity\User as BaseUser; |
| 7 | 7 | use Overwatch\ResultBundle\Entity\TestResult; |
| 8 | 8 | use Overwatch\UserBundle\Enum\AlertSetting; |
| 9 | -use Symfony\Component\Security\Core\Util\SecureRandom; |
|
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * User |
@@ -5,13 +5,13 @@ |
||
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | 6 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 7 | 7 | use Symfony\Component\HttpFoundation\Request; |
| 8 | -use Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface; |
|
| 9 | 8 | use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; |
| 10 | 9 | use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
| 11 | 10 | use Symfony\Component\Security\Core\Exception\AuthenticationException; |
| 12 | 11 | use Symfony\Component\Security\Core\Exception\BadCredentialsException; |
| 13 | 12 | use Symfony\Component\Security\Core\User\UserProviderInterface; |
| 14 | 13 | use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface; |
| 14 | +use Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * ApiAuthenticator |