diff options
author | friendica <info@friendica.com> | 2014-01-21 20:42:10 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-21 20:42:10 -0800 |
commit | a13393fb230f83cbb93ad36494ce337ef5c48ee0 (patch) | |
tree | 36141d367bc0e9b39dc7b3791e1e304fc05a0940 /include | |
parent | c41d3b2d5393de6ae810cd4518851d6d633be279 (diff) | |
download | volse-hubzilla-a13393fb230f83cbb93ad36494ce337ef5c48ee0.tar.gz volse-hubzilla-a13393fb230f83cbb93ad36494ce337ef5c48ee0.tar.bz2 volse-hubzilla-a13393fb230f83cbb93ad36494ce337ef5c48ee0.zip |
seems you can't easily have a blank password for DAV guests, so the guest password is now +++
Diffstat (limited to 'include')
-rw-r--r-- | include/reddav.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/reddav.php b/include/reddav.php index daa7fd734..c5ef39097 100644 --- a/include/reddav.php +++ b/include/reddav.php @@ -745,6 +745,12 @@ class RedBasicAuth extends Sabre\DAV\Auth\Backend\AbstractBasic { public $timezone; protected function validateUserPass($username, $password) { + + if(trim($password) === '+++') { + logger('reddav: validateUserPass: guest ' . $username); + return true; + } + require_once('include/auth.php'); $record = account_verify_password($email,$pass); if($record && $record['account_default_channel']) { |