Stuff
This commit is contained in:
commit
9eaa46bfc0
|
@ -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
|
Reference in New Issue