* Update the password of a share * @param $shareId * @param $password * @return bool * @throws Exception */
($shareId, $password)
| 207 | * @throws Exception |
| 208 | */ |
| 209 | public function updateSharePassword($shareId, $password) |
| 210 | { |
| 211 | $sql = $this->db->getQueryBuilder(); |
| 212 | $sql->update(self::TABLE_NAME) |
| 213 | ->set('password', $sql->createNamedParameter($password)) |
| 214 | ->where($sql->expr()->eq('uid_initiator', $sql->createNamedParameter($this->userSession->getUser()->getUID()))) |
| 215 | ->andWhere($sql->expr()->eq('id', $sql->createNamedParameter($shareId))); |
| 216 | $sql->executeStatement(); |
| 217 | return true; |
| 218 | } |
| 219 | |
| 220 | /** |
| 221 | * Update the domain of a share |