Overview
Comment:Reconnecter si la session est sur un utilisateur différent de celui spécifié dans LOCAL_LOGIN (cas où on change LOCAL_LOGIN alors qu'on a déjà une session)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 1881215f05d2668c21ffba87ff8b2b7832e7907e
User & Date: bohwaz on 2018-09-03 14:13:42
Other Links: branch diff | manifest | tags
Context
2018-09-03
14:14
Changement libellé pour être plus explicite check-in: f16e19023c user: bohwaz tags: dev
14:13
Reconnecter si la session est sur un utilisateur différent de celui spécifié dans LOCAL_LOGIN (cas où on change LOCAL_LOGIN alors qu'on a déjà une session) check-in: 1881215f05 user: bohwaz tags: dev
10:38
Corrections pour les mises à jour sur les signaux des plugins check-in: 95c410ec58 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Membres/Session.php from [528fd3af98] to [f12dc2b07a].

111
112
113
114
115
116
117
118
119
120


121

122
123
124
125
126
127
128
	}

	// Ajout de la gestion de LOCAL_LOGIN
	public function isLogged($disable_local_login = false)
	{
		$logged = parent::isLogged();

		if (!$disable_local_login && !$logged && defined('\Garradin\LOCAL_LOGIN')
			&& is_int(\Garradin\LOCAL_LOGIN) && \Garradin\LOCAL_LOGIN > 0)
		{


			$logged = $this->create(\Garradin\LOCAL_LOGIN);

		}

		return $logged;
	}

	// Ici checkOTP utilise NTP en second recours
	public function checkOTP($secret, $code)







|


>
>
|
>







111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
	}

	// Ajout de la gestion de LOCAL_LOGIN
	public function isLogged($disable_local_login = false)
	{
		$logged = parent::isLogged();

		if (!$disable_local_login && defined('\Garradin\LOCAL_LOGIN')
			&& is_int(\Garradin\LOCAL_LOGIN) && \Garradin\LOCAL_LOGIN > 0)
		{
			if (!$logged || ($logged && $this->user->id != \Garradin\LOCAL_LOGIN))
			{
				$logged = $this->create(\Garradin\LOCAL_LOGIN);
			}
		}

		return $logged;
	}

	// Ici checkOTP utilise NTP en second recours
	public function checkOTP($secret, $code)