This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
2019-11-19 18:02:22 +00:00
|
|
|
from radicale.auth import BaseAuth
|
|
|
|
import requests
|
|
|
|
|
|
|
|
|
|
|
|
class Auth(BaseAuth):
|
|
|
|
def is_authenticated(self, user, password):
|
2019-12-25 23:06:09 +00:00
|
|
|
res = requests.post("https://account.keks.cloud/api/v1/user/check", {"username": user, "password": password})
|
2019-11-19 18:02:22 +00:00
|
|
|
if res.status_code == 200:
|
|
|
|
return True
|
|
|
|
|
|
|
|
return False
|