summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/Service')
-rw-r--r--src/SemanticScuttle/Service/AuthUser.php11
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?