mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Keepalive in admin. Fires a 'keepAlive' task 5s before the end of the admin session
This commit is contained in:
@@ -193,6 +193,16 @@ class AdminController
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle logout.
|
||||
*
|
||||
* @return bool True if the action was performed.
|
||||
*/
|
||||
protected function taskKeepAlive()
|
||||
{
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the email password recovery procedure.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user