mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-03 06:37:27 +02:00
Improve language
This commit is contained in:
@@ -146,7 +146,7 @@ final class Auth extends UserManager {
|
|||||||
private function resyncSessionIfNecessary() {
|
private function resyncSessionIfNecessary() {
|
||||||
// if the user is signed in
|
// if the user is signed in
|
||||||
if ($this->isLoggedIn()) {
|
if ($this->isLoggedIn()) {
|
||||||
// the session field may not have been initialized for sessions that had already existed before the introduction of this feature
|
// the following session field may not have been initialized for sessions that had already existed before the introduction of this feature
|
||||||
if (!isset($_SESSION[self::SESSION_FIELD_LAST_RESYNC])) {
|
if (!isset($_SESSION[self::SESSION_FIELD_LAST_RESYNC])) {
|
||||||
$_SESSION[self::SESSION_FIELD_LAST_RESYNC] = 0;
|
$_SESSION[self::SESSION_FIELD_LAST_RESYNC] = 0;
|
||||||
}
|
}
|
||||||
@@ -166,7 +166,7 @@ final class Auth extends UserManager {
|
|||||||
|
|
||||||
// if the user's data has been found
|
// if the user's data has been found
|
||||||
if (!empty($authoritativeData)) {
|
if (!empty($authoritativeData)) {
|
||||||
// the session field may not have been initialized for sessions that had already existed before the introduction of this feature
|
// the following session field may not have been initialized for sessions that had already existed before the introduction of this feature
|
||||||
if (!isset($_SESSION[self::SESSION_FIELD_FORCE_LOGOUT])) {
|
if (!isset($_SESSION[self::SESSION_FIELD_FORCE_LOGOUT])) {
|
||||||
$_SESSION[self::SESSION_FIELD_FORCE_LOGOUT] = 0;
|
$_SESSION[self::SESSION_FIELD_FORCE_LOGOUT] = 0;
|
||||||
}
|
}
|
||||||
@@ -429,7 +429,7 @@ final class Auth extends UserManager {
|
|||||||
// schedule a forced logout in all sessions
|
// schedule a forced logout in all sessions
|
||||||
$this->forceLogoutForUserById($this->getUserId());
|
$this->forceLogoutForUserById($this->getUserId());
|
||||||
|
|
||||||
// the session field may not have been initialized for sessions that had already existed before the introduction of this feature
|
// the following session field may not have been initialized for sessions that had already existed before the introduction of this feature
|
||||||
if (!isset($_SESSION[self::SESSION_FIELD_FORCE_LOGOUT])) {
|
if (!isset($_SESSION[self::SESSION_FIELD_FORCE_LOGOUT])) {
|
||||||
$_SESSION[self::SESSION_FIELD_FORCE_LOGOUT] = 0;
|
$_SESSION[self::SESSION_FIELD_FORCE_LOGOUT] = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user