aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/exceptions/OpenShaarliPasswordException.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/front/exceptions/OpenShaarliPasswordException.php')
-rw-r--r--application/front/exceptions/OpenShaarliPasswordException.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/application/front/exceptions/OpenShaarliPasswordException.php b/application/front/exceptions/OpenShaarliPasswordException.php
new file mode 100644
index 00000000..a6f0b3ae
--- /dev/null
+++ b/application/front/exceptions/OpenShaarliPasswordException.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 change the admin password on an open shaarli instance.
11 */
12class OpenShaarliPasswordException extends ShaarliFrontException
13{
14 public function __construct()
15 {
16 parent::__construct(t('You are not supposed to change a password on an Open Shaarli.'), 403);
17 }
18}