diff --git a/auth.php b/auth.php index 91f8c9d..7f54cdf 100644 --- a/auth.php +++ b/auth.php @@ -6,6 +6,9 @@ /** User authentication (abstract class) */ class auth { + /** The application name */ + public $appName = null; + /** Display the authentication page The message is displayed to the user in case of error The url is the caller url to go back if authentication is correct @@ -28,7 +31,7 @@ class auth background-image: radial-gradient(ellipse at center -60px, #9da1ac 0%,#1c202a 100%); background-color: #eee; }\n"; - $res .= ".form-signin { max-width: 330px;padding:15px;margin:0 auto;}\n"; + $res .= ".form-signin { max-width: 430px;padding:15px;margin:0 auto;}\n"; $res .= ".form-signin .form-signin-heading, .form-signin .checkbox {"; $res .= " margin-bottom: 10px; }\n"; $res .= ".form-signin .checkbox { font-weight: normal; }\n"; @@ -65,11 +68,14 @@ class auth box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px rgba(0, 0, 0, 0.05); background-color: #cccccc;}\n"; + $res .= "h1 { color: #bbb }\n"; $res .= "h2 { padding-top: 0px; padding-bottom: 30px;}\n"; $res .= " \n"; $res .= " \n"; $res .= " \n"; $res .= "
\n"; + if ($this->appName !== null) + $res .= "

".$this->appName."

\n"; $res .= "
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); }