Redirect user if it need to add an 2FA method or need to change password

This commit is contained in:
Jan Böhmer 2019-12-31 17:54:51 +01:00
parent 3db0baa5e5
commit cdd5027ee8
5 changed files with 184 additions and 2 deletions

View file

@ -205,7 +205,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
protected $trustedDeviceCookieVersion = 0;
/** @var Collection<TwoFactorKeyInterface>
* @ORM\OneToMany(targetEntity="App\Entity\UserSystem\U2FKey", mappedBy="user")
* @ORM\OneToMany(targetEntity="App\Entity\UserSystem\U2FKey", mappedBy="user", cascade={"REMOVE"}, orphanRemoval=true)
*/
protected $u2fKeys;