diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-27 13:35:48 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | ef00f9d2033f6de11e71bf3a909399cae6f73a9f (patch) | |
tree | 96f47312084bab73be34495eed4280110a8ff258 /application/front/exceptions/WrongTokenException.php | |
parent | ba43064ddb7771fc97df135a32f9b0d5e373dd36 (diff) | |
download | Shaarli-ef00f9d2033f6de11e71bf3a909399cae6f73a9f.tar.gz Shaarli-ef00f9d2033f6de11e71bf3a909399cae6f73a9f.tar.zst Shaarli-ef00f9d2033f6de11e71bf3a909399cae6f73a9f.zip |
Process password change controller through Slim
Diffstat (limited to 'application/front/exceptions/WrongTokenException.php')
-rw-r--r-- | application/front/exceptions/WrongTokenException.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/application/front/exceptions/WrongTokenException.php b/application/front/exceptions/WrongTokenException.php new file mode 100644 index 00000000..42002720 --- /dev/null +++ b/application/front/exceptions/WrongTokenException.php | |||
@@ -0,0 +1,18 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Shaarli\Front\Exception; | ||
6 | |||
7 | /** | ||
8 | * Class OpenShaarliPasswordException | ||
9 | * | ||
10 | * Raised if the user tries to perform an action with an invalid XSRF token. | ||
11 | */ | ||
12 | class WrongTokenException extends ShaarliFrontException | ||
13 | { | ||
14 | public function __construct() | ||
15 | { | ||
16 | parent::__construct(t('Wrong token.'), 403); | ||
17 | } | ||
18 | } | ||