You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've tried your code on 2022-04-14-fastapi-webapp-with-auth.
But when I enter username and password and submit, it still redirect to home and show "You are NOT logged in". But in terminal, log says "Login successful!!!!".
And when I try to access /private, it show "AttributeError: 'str' object has no attribute 'removeprefix'".
Is there any mistake in my operation and how can I fix it? Thanks!
The text was updated successfully, but these errors were encountered:
because the methodstr.removeprefix() support only python 3.9+. And I use python 3.8.
And after I modified it, it could login successfully.
Sorry for the native question.
Hello, I've tried your code on 2022-04-14-fastapi-webapp-with-auth.
But when I enter username and password and submit, it still redirect to home and show "You are NOT logged in". But in terminal, log says "Login successful!!!!".
And when I try to access /private, it show "AttributeError: 'str' object has no attribute 'removeprefix'".
Is there any mistake in my operation and how can I fix it? Thanks!
The text was updated successfully, but these errors were encountered: