full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Login issue

Open zjpiazza opened this issue 4 years ago • 5 comments

After launching the template, I get an "invalid username or password" message after copying the same credentials present in the config file. I have tried deleting and recreating the project I'm not sure why the supplied credentials are failing. Is having SMTP enabled a requirement or no? I am in the process of setting a MailGun domain to handle email.

zjpiazza avatar Apr 29 '21 19:04 zjpiazza

Hello, I thought I had the same issue, but #339 made me realise it was a problem with docker volumes. Be sure to delete the database volume with docker volume rm projectname_app-db-data volume before recreating the project.

MeGilles avatar Apr 30 '21 08:04 MeGilles

if you regenerating the project or restarting the project make sure you drop all the previous database table from postgres data in the docker. it's really hidden in the docker. here's what i did solve the issue using this stackoverflow method

pramadito avatar May 05 '21 04:05 pramadito

docker volume rm projectname_app-db-data

@MeGilles , my project name is mytestapp, so I run docker volume rm mytestapp_app-db-data, but it indicates there's no such volume.

stealthrabbi avatar Jun 25 '21 13:06 stealthrabbi

In my case, even after brutally remove everything Docker related, back-end login at localhost:80 was still not working.

Only after running the front-end (as suggested in #339 ) with cd frontend npm install npm run serve the front-end login at localhost:8080 worked fine.

Is this normal behavior or am I missing something about the back-end login?

ieferrari avatar Aug 04 '21 13:08 ieferrari

My problem was that I was developing on a remote server with no domain so I needed to add the public IP address to the .env and frontend/.env instead of the domain set by default.

hope it helps

awmar1 avatar Aug 30 '21 00:08 awmar1