mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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:
parent
dad1295aee
commit
6393846179
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user