mirror of
https://github.com/etesync/server
synced 2024-11-19 07:18:08 +00:00
Implement is_etebase.
This commit is contained in:
parent
407ce0b7a5
commit
7ad98b8d28
@ -223,6 +223,11 @@ def validate_login_request(
|
||||
raise ValidationError("login_bad_signature", "Wrong password for user.", status.HTTP_401_UNAUTHORIZED)
|
||||
|
||||
|
||||
@authentication_router.get("/is_etebase/")
|
||||
async def is_etebase():
|
||||
return MsgpackResponse({})
|
||||
|
||||
|
||||
@authentication_router.post("/login_challenge/")
|
||||
async def login_challenge(user: User = Depends(get_login_user)):
|
||||
enc_key = get_encryption_key(user.userinfo.salt)
|
||||
|
Loading…
Reference in New Issue
Block a user