auth : Add the application name in authentication panel

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2234 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-08-13 14:34:45 +00:00
parent ac0cf5a16b
commit e536e15009
2 changed files with 12 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ class authentication
);*/
public $authServers = array ();
/** The application Name displayed on authentication page */
public $appName = null;
public function __construct ($route)
{
$this->route = $route;
@@ -90,6 +93,8 @@ class authentication
$alreadyAuth = false;
if ($pre->email !== "anonymous")
$alreadyAuth = $pre->email;
if ($this->appName !== null)
$auth->appName = $this->appName;
echo $auth->pageHTML ($this->route->baseURL(), $message, $url,
$alreadyAuth);
}