Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix Session Credentials & WebDAV Basic Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 17, 2014
1 parent 0c137fc commit 0552dfd
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -94,7 +94,10 @@ public function authenticate(Sabre\DAV\Server $server, $realm)
throw new Sabre\DAV\Exception\NotAuthenticated();
}
$this->updateCurrentUserRights(AuthService::getLoggedUser());

if (ConfService::getCoreConf("SESSION_SET_CREDENTIALS", "auth")) {
AJXP_Safe::storeCredentials($this->currentUser, $userpass[1]);
}
ConfService::switchRootDir($this->repositoryId);
// the method used here will invalidate the cached password every minute on the minute
if (!$cachedPasswordValid) {
$webdavData["TMP_PASS"] = $encryptedPass;
Expand Down

0 comments on commit 0552dfd

Please sign in to comment.