commit e0a932abd67546442a31dbe99edcc4c0d15ca0bc
parent aa6d490040b9b51fe4c076dc556753c61d991fd6
Author: Jan Dankert <devnull@localhost>
Date: Tue, 6 Nov 2012 00:23:13 +0100
Das Interface Auth richtig implementieren.
Diffstat:
4 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/auth/DatabaseAuth.class.php b/auth/DatabaseAuth.class.php
@@ -27,6 +27,12 @@ class DatabaseAuth implements Auth
return $ok;
}
+
+ public function username()
+ {
+ return null;
+ }
+
}
?>
\ No newline at end of file
diff --git a/auth/InternalAuth.class.php b/auth/InternalAuth.class.php
@@ -46,6 +46,11 @@ SQL
return false;
}
}
+
+ public function username()
+ {
+ return null;
+ }
}
?>
\ No newline at end of file
diff --git a/auth/LdapAuth.class.php b/auth/LdapAuth.class.php
@@ -220,7 +220,13 @@ SQL
// Benutzername nicht in Datenbank.
return false;
- }
+ }
+
+ public function username()
+ {
+ return null;
+ }
+
}
?>
\ No newline at end of file
diff --git a/auth/include.inc.php b/auth/include.inc.php
@@ -1,5 +1,4 @@
<?php
-
require_once( OR_AUTHCLASSES_DIR."Auth.class.".PHP_EXT );
require_once( OR_AUTHCLASSES_DIR."DatabaseAuth.class.".PHP_EXT );
require_once( OR_AUTHCLASSES_DIR."HttpAuth.class.".PHP_EXT );
@@ -10,5 +9,7 @@ require_once( OR_AUTHCLASSES_DIR."OpenIdAuth.class.".PHP_EXT );
require_once( OR_AUTHCLASSES_DIR."PersonasAuth.class.".PHP_EXT );
require_once( OR_AUTHCLASSES_DIR."SingleSignonAuth.class.".PHP_EXT );
require_once( OR_AUTHCLASSES_DIR."SSLAuth.class.".PHP_EXT );
-
+require_once( OR_AUTHCLASSES_DIR."GuestAuth.class.".PHP_EXT );
+/*
+*/
?>
\ No newline at end of file