when inputting correct login details, it wont go through the proper logic defined in the login.py file. I think its due to the fact that there are two endpoints being defined with the same endpoint name login(). to mitigate this, I suggest combining login.py and register.py
OR
instead, remove the "post" from methods=["GET", "POST"] Inside of routes. ( i have no idea if this will work, but ill give a try)
when inputting correct login details, it wont go through the proper logic defined in the login.py file. I think its due to the fact that there are two endpoints being defined with the same endpoint name login(). to mitigate this, I suggest combining login.py and register.py
OR
instead, remove the "post" from methods=["GET", "POST"] Inside of routes. ( i have no idea if this will work, but ill give a try)
V this is from login.py
V this is from routes.py