Overview
Comment: | Indiquer que la casse ne compte pas pour la connexion, et réduire les emails en minuscule |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
77f0f3cadb09b068ea5236e5e5a49883 |
User & Date: | bohwaz on 2017-09-25 00:10:07 |
Other Links: | branch diff | manifest | tags |
Context
2017-09-25
| ||
00:13 | S'assurer que le champ identifiant est insensible à la casse check-in: 3772f9de04 user: bohwaz tags: dev | |
00:10 | Indiquer que la casse ne compte pas pour la connexion, et réduire les emails en minuscule check-in: 77f0f3cadb user: bohwaz tags: dev | |
2017-09-21
| ||
07:38 | Ignorer les reports à nouveau dans les rapprochements check-in: 509dcc0bcf user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Membres.php from [f42c21d7f7] to [6f4aa75a2b].
︙ | ︙ | |||
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | elseif ($config->type == 'number' && trim($data[$key]) !== '') { if (empty($data[$key])) { $data[$key] = 0; } } elseif ($config->type == 'select' && !in_array($data[$key], $config->options)) { throw new UserException('Le champ "' . $config->title . '" ne correspond pas à un des choix proposés.'); } elseif ($config->type == 'multiple') { if (empty($data[$key])) | > > > > | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | elseif ($config->type == 'number' && trim($data[$key]) !== '') { if (empty($data[$key])) { $data[$key] = 0; } } elseif ($config->type == 'email') { $data[$key] = strtolower($data[$key]); } elseif ($config->type == 'select' && !in_array($data[$key], $config->options)) { throw new UserException('Le champ "' . $config->title . '" ne correspond pas à un des choix proposés.'); } elseif ($config->type == 'multiple') { if (empty($data[$key])) |
︙ | ︙ |
Modified src/include/lib/Garradin/Membres/Session.php from [92bf6c6d59] to [d89df003fb].
︙ | ︙ | |||
38 39 40 41 42 43 44 | { $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 membres_categories AS mc ON mc.id = m.id_categorie | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | { $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 membres_categories AS mc ON mc.id = m.id_categorie WHERE m.%1$s = ? COLLATE NOCASE AND mc.droit_connexion >= %2$d LIMIT 1;'; $query = sprintf($query, $champ_id, Membres::DROIT_ACCES); return $this->db->first($query, $login); } |
︙ | ︙ |