| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function changePassword(ChangeExistingUserPasswordDto $changedPassword): void |
||
| 27 | { |
||
| 28 | $this->getEntityManager() |
||
| 29 | ->createQueryBuilder() |
||
| 30 | ->update(User::class, "u") |
||
| 31 | ->set("u.password", ":password") |
||
| 32 | ->where("u.email = :login") |
||
| 33 | ->getQuery() |
||
| 34 | ->setParameter("password", $changedPassword->getPassword()) |
||
| 35 | ->setParameter("login", $changedPassword->getLogin()) |
||
| 36 | ->execute(); |
||
| 37 | } |
||
| 38 | } |