Stuff
This commit is contained in:
commit
9eaa46bfc0
2 changed files with 16 additions and 0 deletions
11
radicale_keks_cloud/__init__.py
Normal file
11
radicale_keks_cloud/__init__.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from radicale.auth import BaseAuth
|
||||
import requests
|
||||
|
||||
|
||||
class Auth(BaseAuth):
|
||||
def is_authenticated(self, user, password):
|
||||
res = requests.post("https://api.account.keks.cloud/api/v1/user/check", {"username": user, "password": password})
|
||||
if res.status_code == 200:
|
||||
return True
|
||||
|
||||
return False
|
5
setup.py
Normal file
5
setup.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from distutils.core import setup
|
||||
|
||||
setup(name="radicale_keks_cloud", packages=["radicale_keks_cloud"])
|
Reference in a new issue