mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-18 13:18:00 +02:00
chore: clean-up
This commit is contained in:
parent
e9dc8c775d
commit
e7d3be9854
1 changed files with 0 additions and 2 deletions
|
|
@ -87,8 +87,6 @@ async def login(data: LoginUsernamePassword) -> JSONResponse:
|
|||
if not account or not account.verify_password(data.password):
|
||||
raise HTTPException(HTTPStatus.UNAUTHORIZED, "Invalid credentials.")
|
||||
|
||||
if not account.activated:
|
||||
raise HTTPException(HTTPStatus.FORBIDDEN, "Account is not activated.")
|
||||
return _auth_success_response(account.username, account.id, account.email)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue