feat: init login & register from frontend

This commit is contained in:
swve 2022-09-22 22:17:27 +02:00
parent 67ce2e7371
commit 8cc727e309
8 changed files with 90 additions and 14 deletions

View file

@ -17,7 +17,7 @@ async def login_for_access_token(form_data: OAuth2PasswordRequestForm = Depends(
if not user:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect username or password",
detail="Incorrect Email or password",
headers={"WWW-Authenticate": "Bearer"},
)
access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)