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.
This commit is contained in:
Ben Thomson 2021-08-03 12:01:57 +08:00 committed by GitHub
parent dad1295aee
commit 6393846179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();