From 639384617952f92e0906a986eee05acac9d85331 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Tue, 3 Aug 2021 12:01:57 +0800 Subject: [PATCH] Add body class for restore/reset pages Allows skin developers to target the body class in the auth layout for specific pages within the Auth controller. The sign in page already specified a "signin" class, so this brings the other pages into parity. --- modules/backend/controllers/Auth.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/backend/controllers/Auth.php b/modules/backend/controllers/Auth.php index 9ac647a5c..2393a97e4 100644 --- a/modules/backend/controllers/Auth.php +++ b/modules/backend/controllers/Auth.php @@ -134,6 +134,8 @@ class Auth extends Controller */ public function restore() { + $this->bodyClass = 'restore'; + try { if (post('postback')) { return $this->restore_onSubmit(); @@ -197,6 +199,8 @@ class Auth extends Controller */ public function reset($userId = null, $code = null) { + $this->bodyClass = 'reset'; + try { if (post('postback')) { return $this->reset_onSubmit();