diff options
Diffstat (limited to 'application/front/controller/admin/PasswordController.php')
-rw-r--r-- | application/front/controller/admin/PasswordController.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/application/front/controller/admin/PasswordController.php b/application/front/controller/admin/PasswordController.php index bcce01a6..5ec0d24b 100644 --- a/application/front/controller/admin/PasswordController.php +++ b/application/front/controller/admin/PasswordController.php | |||
@@ -7,6 +7,7 @@ namespace Shaarli\Front\Controller\Admin; | |||
7 | use Shaarli\Container\ShaarliContainer; | 7 | use Shaarli\Container\ShaarliContainer; |
8 | use Shaarli\Front\Exception\OpenShaarliPasswordException; | 8 | use Shaarli\Front\Exception\OpenShaarliPasswordException; |
9 | use Shaarli\Front\Exception\ShaarliFrontException; | 9 | use Shaarli\Front\Exception\ShaarliFrontException; |
10 | use Shaarli\Render\TemplatePage; | ||
10 | use Slim\Http\Request; | 11 | use Slim\Http\Request; |
11 | use Slim\Http\Response; | 12 | use Slim\Http\Response; |
12 | use Throwable; | 13 | use Throwable; |
@@ -33,7 +34,7 @@ class PasswordController extends ShaarliAdminController | |||
33 | */ | 34 | */ |
34 | public function index(Request $request, Response $response): Response | 35 | public function index(Request $request, Response $response): Response |
35 | { | 36 | { |
36 | return $response->write($this->render('changepassword')); | 37 | return $response->write($this->render(TemplatePage::CHANGE_PASSWORD)); |
37 | } | 38 | } |
38 | 39 | ||
39 | /** | 40 | /** |
@@ -55,7 +56,7 @@ class PasswordController extends ShaarliAdminController | |||
55 | 56 | ||
56 | return $response | 57 | return $response |
57 | ->withStatus(400) | 58 | ->withStatus(400) |
58 | ->write($this->render('changepassword')) | 59 | ->write($this->render(TemplatePage::CHANGE_PASSWORD)) |
59 | ; | 60 | ; |
60 | } | 61 | } |
61 | 62 | ||
@@ -71,7 +72,7 @@ class PasswordController extends ShaarliAdminController | |||
71 | 72 | ||
72 | return $response | 73 | return $response |
73 | ->withStatus(400) | 74 | ->withStatus(400) |
74 | ->write($this->render('changepassword')) | 75 | ->write($this->render(TemplatePage::CHANGE_PASSWORD)) |
75 | ; | 76 | ; |
76 | } | 77 | } |
77 | 78 | ||
@@ -95,6 +96,6 @@ class PasswordController extends ShaarliAdminController | |||
95 | 96 | ||
96 | $this->saveSuccessMessage(t('Your password has been changed')); | 97 | $this->saveSuccessMessage(t('Your password has been changed')); |
97 | 98 | ||
98 | return $response->write($this->render('changepassword')); | 99 | return $response->write($this->render(TemplatePage::CHANGE_PASSWORD)); |
99 | } | 100 | } |
100 | } | 101 | } |