diff --git a/wire/core/Process.php b/wire/core/Process.php index 5a5175ab..baa717c2 100644 --- a/wire/core/Process.php +++ b/wire/core/Process.php @@ -600,4 +600,24 @@ abstract class Process extends WireData implements Module { $page = $this->wire('pages')->get("process=$moduleID, include=all"); return $page; } + + /** + * URL to redirect to after non-authenticated user is logged-in, or false if module does not support + * + * When supported, module should gather any input GET vars and URL segments that it recognizes, + * sanitize them, and return a URL for that request. ProcessLogin will redirect to the returned URL + * after user has successfully authenticated. + * + * If module does not support this, or only needs to support an integer 'id' GET var, then this + * method can return false. + * + * @param Page $page Requested page + * @return bool|string + * @sine 3.0.167 + * + */ + public static function getAfterLoginUrl(Page $page) { + if($page) {} + return false; + } }