Skip to content

Commit ffdc41b

Browse files
PavelWeirichdg
authored andcommitted
User: added method refreshStorage() to clear identity cache. (#46) (#50)
1 parent 98259d6 commit ffdc41b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Security/User.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ public function getId()
151151
}
152152

153153

154+
final public function refreshStorage(): void
155+
{
156+
$this->identity = false;
157+
$this->authenticated = null;
158+
}
159+
160+
154161
/**
155162
* Sets authentication handler.
156163
* @return static

0 commit comments

Comments
 (0)