Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
throw new HTTPException\BadRequestException('no albumname specified');
}
- // check if photo is existing in databasei
+ // check if photo is existing in database
if (!Photo::exists(['resource-id' => $photo_id, 'uid' => $uid, 'album' => $album])) {
throw new HTTPException\BadRequestException('photo not available');
}
$ret['success'] = true;
$token = Strings::getRandomHex(32);
- // Store the generated token in the databe.
+ // Store the generated token in the database.
OpenWebAuthToken::create('owt', 0, $token, $contact['addr']);
$result = '';