mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-15 18:52:20 +01:00
Better error message and updated licence
This commit is contained in:
parent
bf9f68a450
commit
7cb02511ae
2 changed files with 3 additions and 3 deletions
2
LICENSE
2
LICENSE
|
@ -187,7 +187,7 @@
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2016-2017 Lukas Metzger
|
Copyright 2016-2018 Lukas Metzger
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -73,8 +73,8 @@ class Remote
|
||||||
$this->logger->debug('User tried to update non existent record via changekey api.');
|
$this->logger->debug('User tried to update non existent record via changekey api.');
|
||||||
return $res->withJson(['error' => 'The given record does not exist.'], 404);
|
return $res->withJson(['error' => 'The given record does not exist.'], 404);
|
||||||
} catch (\Exceptions\ForbiddenException $e) {
|
} catch (\Exceptions\ForbiddenException $e) {
|
||||||
$this->logger->debug('User tried to update an record via changekey api with incorrect password.');
|
$this->logger->debug('User tried to update an record via changekey api with incorrect signature.');
|
||||||
return $res->withJson(['error' => 'The provided password was invalid.'], 403);
|
return $res->withJson(['error' => 'The provided signature was invalid.'], 403);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logger->info('Record ' . $record . ' was changed via the changekey api.');
|
$this->logger->info('Record ' . $record . ' was changed via the changekey api.');
|
||||||
|
|
Loading…
Reference in a new issue