Overview
Comment: | Do not send password changed when creating the password |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
f5ced3f1b43a57df18e1eb8dc61435c2 |
User & Date: | bohwaz on 2022-09-15 15:12:35 |
Other Links: | branch diff | manifest | tags |
Context
2022-09-15
| ||
15:28 | Fix mailing check-in: cb08cb9611 user: bohwaz tags: dev | |
15:12 | Do not send password changed when creating the password check-in: f5ced3f1b4 user: bohwaz tags: dev | |
15:03 | Do not send login changed when there was no login before check-in: 2fb968f158 user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Entities/Users/User.php from [6512a29a23] to [67b929a1a3].
︙ | ︙ | |||
164 165 166 167 168 169 170 | } public function save(bool $selfcheck = true): bool { $columns = array_intersect(DynamicFields::getInstance()->getSearchColumns(), array_keys($this->_modified)); $login_field = DynamicFields::getLoginField(); $login_modified = $this->_modified[$login_field] ?? null; | | | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | } public function save(bool $selfcheck = true): bool { $columns = array_intersect(DynamicFields::getInstance()->getSearchColumns(), array_keys($this->_modified)); $login_field = DynamicFields::getLoginField(); $login_modified = $this->_modified[$login_field] ?? null; $password_modified = $this->_modified['password'] ?? null; parent::save($selfcheck); // We are not using a trigger as it would make modifying the users table from outside impossible // (because the transliterate_to_ascii function does not exist) if (count($columns)) { DynamicFields::getInstance()->rebuildUserSearchCache($this->id()); |
︙ | ︙ |