From c6165c5c2814f55cfaa62fdb89e4e4a5fad64067 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 3 Jan 2021 20:38:15 +0100 Subject: [PATCH] added IdentityRestorer --- src/Security/IdentityRestorer.php | 22 ++++++++++++++++++++++ src/Security/User.php | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 src/Security/IdentityRestorer.php diff --git a/src/Security/IdentityRestorer.php b/src/Security/IdentityRestorer.php new file mode 100644 index 00000000..e870995f --- /dev/null +++ b/src/Security/IdentityRestorer.php @@ -0,0 +1,22 @@ +identity = $this->storage->getIdentity(); $this->logoutReason = $this->storage->getLogoutReason(); } + if ($this->authenticator instanceof IdentityRestorer) { + $this->identity = $this->authenticator->restoreIdentity($this->identity); + } }