X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9a23a8c0a51b7ec38a96f525484134f3cb85dc7e..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/WEB-INF/lib/Auth.class.php
diff --git a/WEB-INF/lib/Auth.class.php b/WEB-INF/lib/Auth.class.php
index 243eed56..2c3c657d 100644
--- a/WEB-INF/lib/Auth.class.php
+++ b/WEB-INF/lib/Auth.class.php
@@ -52,17 +52,17 @@ class Auth {
{
return false;
}
-
+
// isPasswordExternal - returns true if actual password is not stored in the internal DB.
function isPasswordExternal()
{
return false;
}
-
+
// doLogin - perfoms a login procedure.
function doLogin($login, $password) {
$auth = $this->authenticate($login, $password);
-
+
if (defined('AUTH_DEBUG') && isTrue(AUTH_DEBUG)) {
echo '
'; var_dump($auth); echo '
';
}
@@ -86,7 +86,7 @@ class Auth {
echo 'login "'.$login.'" does not exist in Time Tracker database.
';
return false;
}
-
+
$this->setAuth($val['id'], $login);
return true;
}
@@ -111,7 +111,7 @@ class Auth {
function getUserLogin() {
return $_SESSION['login'];
}
-
+
// getUserId - retrieves user ID from session.
function getUserId() {
if (isset($_SESSION['authenticated_user_id']))
@@ -132,4 +132,3 @@ class Auth {
}
}
}
-?>
\ No newline at end of file