diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-05 18:41:43 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-05 18:41:43 +0000 |
commit | b8fbabe965ed499a6552f5984055a83e0fd39074 (patch) | |
tree | a645b0b43f63e49a2bed7f01e384423d2d53b5f7 /src/SemanticScuttle/Service | |
parent | b74c17f1b5df4862d15c6f072ef0049ff61e3713 (diff) | |
download | semanticscuttle-b8fbabe965ed499a6552f5984055a83e0fd39074.tar.gz semanticscuttle-b8fbabe965ed499a6552f5984055a83e0fd39074.tar.bz2 |
make external auth login work. one thing left is when the user changes his password
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@628 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service')
-rw-r--r-- | src/SemanticScuttle/Service/AuthUser.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/SemanticScuttle/Service/AuthUser.php b/src/SemanticScuttle/Service/AuthUser.php index 79cac9c..a293af5 100644 --- a/src/SemanticScuttle/Service/AuthUser.php +++ b/src/SemanticScuttle/Service/AuthUser.php @@ -155,9 +155,12 @@ class SemanticScuttle_Service_AuthUser extends SemanticScuttle_Service_User } $ok = $this->loginAuth($username, $password); - $password = $this->sanitisePassword($password); - $id = $this->getIdFromUser($username); - //FIXME: check against auth + if (!$ok) { + return false; + } + + //utilize real login method to get longtime cookie support etc. + return parent::login($username, $password, $remember); } @@ -187,7 +190,7 @@ class SemanticScuttle_Service_AuthUser extends SemanticScuttle_Service_User if (!$this->getUserByUsername($username)) { $this->addUser( $username, $password, - $username . '@' . $GLOBALS['authemaildomain'] + $username . $GLOBALS['authEmailSuffix'] ); } //FIXME: what if the user changed his password? |