X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Flib%2FAuth.class.php;h=2c3c657da1ddbd822c2ecee0bd775b27dc2a044c;hb=9caad65374f4a83042c7df04d463448affa3443b;hp=e8a4ec07bf8cd15ca7bd10c41ca82c3fc2a429ed;hpb=993450e17195b87dc406c3135ee22dafe9b825fb;p=timetracker.git
diff --git a/WEB-INF/lib/Auth.class.php b/WEB-INF/lib/Auth.class.php
index e8a4ec07..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']))