Overview
Comment:Fix typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable | 1.1.0
Files: files | file ages | folders
SHA3-256: 6b5cff4310a04ae77184e3de4a5b3f100dae9159c9eac6ce71c4713b193ff4ca
User & Date: bohwaz on 2021-04-08 19:02:12
Other Links: manifest | tags
Context
2021-04-08
19:25
Fix case insensitive collatin check-in: 8bdbf02637 user: bohwaz tags: trunk, stable, 1.1.0
19:02
Fix typo check-in: 6b5cff4310 user: bohwaz tags: trunk, stable, 1.1.0
19:00
Use case comparison in login check-in: 6fe90ff265 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Membres/Session.php from [c299b8c9c2] to [08959104e6].

94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
		}

		return parent::isPasswordCompromised($password);
	}

	protected function getUserForLogin($login)
	{
		$champ_id = $config->get('champ_identifiant');

		// Ne renvoie un membre que si celui-ci a le droit de se connecter
		$query = 'SELECT m.id, m.%1$s AS login, m.passe AS password, m.secret_otp AS otp_secret
			FROM membres AS m
			INNER JOIN users_categories AS c ON c.id = m.id_category
			WHERE m.%1$s = ? COLLATE NOCASE AND c.perm_connect >= %2$d
			LIMIT 1;';







|







94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
		}

		return parent::isPasswordCompromised($password);
	}

	protected function getUserForLogin($login)
	{
		$champ_id = Config::getInstance()->get('champ_identifiant');

		// Ne renvoie un membre que si celui-ci a le droit de se connecter
		$query = 'SELECT m.id, m.%1$s AS login, m.passe AS password, m.secret_otp AS otp_secret
			FROM membres AS m
			INNER JOIN users_categories AS c ON c.id = m.id_category
			WHERE m.%1$s = ? COLLATE NOCASE AND c.perm_connect >= %2$d
			LIMIT 1;';