X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=dav%2FSabreDAV%2Fexamples%2Fbasicauth.php;fp=dav%2FSabreDAV%2Fexamples%2Fbasicauth.php;h=75552f3f9438974f0c13d315201206490f943ce3;hb=7115197a33ad9141c749a83c454a2f85d9c1290a;hp=0000000000000000000000000000000000000000;hpb=45cc9885fca461335b3e6a10ee46a019c6f75b77;p=friendica-addons.git diff --git a/dav/SabreDAV/examples/basicauth.php b/dav/SabreDAV/examples/basicauth.php new file mode 100644 index 00000000..75552f3f --- /dev/null +++ b/dav/SabreDAV/examples/basicauth.php @@ -0,0 +1,26 @@ +getUserPass(); + +if (!$result || $result[0]!=$u || $result[1]!=$p) { + + $auth->requireLogin(); + echo "Authentication required\n"; + die(); + +}