aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/exceptions/WrongTokenException.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/front/exceptions/WrongTokenException.php')
-rw-r--r--application/front/exceptions/WrongTokenException.php18
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
3declare(strict_types=1);
4
5namespace 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 */
12class WrongTokenException extends ShaarliFrontException
13{
14 public function __construct()
15 {
16 parent::__construct(t('Wrong token.'), 403);
17 }
18}