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