Overview
Comment: | Insensibilité à la casse pour la correspondance quand on fait une demande de récupération de mot de passe |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
8cc57b06eb620d0d6e2fc73fcf2ab164 |
User & Date: | bohwaz on 2019-01-18 10:22:59 |
Other Links: | manifest | tags |
Context
2019-01-22
| ||
10:51 | Avertissement plus explicite à la clôture check-in: 6b9fc8e8d1 user: bohwaz tags: trunk, stable | |
2019-01-18
| ||
10:22 | Insensibilité à la casse pour la correspondance quand on fait une demande de récupération de mot de passe check-in: 8cc57b06eb user: bohwaz tags: trunk, stable | |
2019-01-11
| ||
17:35 | Fix lien objet check-in: c909571998 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Membres/Session.php from [6e72b311e7] to [ad925c9b8d].
︙ | ︙ | |||
170 171 172 173 174 175 176 | public function recoverPasswordSend($id) { $db = DB::getInstance(); $config = Config::getInstance(); $champ_id = $config->get('champ_identifiant'); | | | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | public function recoverPasswordSend($id) { $db = DB::getInstance(); $config = Config::getInstance(); $champ_id = $config->get('champ_identifiant'); $membre = $db->first('SELECT id, email, passe, clef_pgp FROM membres WHERE '.$champ_id.' = ? COLLATE NOCASE LIMIT 1;', trim($id)); if (!$membre || trim($membre->email) == '') { return false; } // valide pour 1 heure minimum |
︙ | ︙ |