Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login not working #782

Open
FusselTV opened this issue Jan 9, 2025 · 6 comments
Open

login not working #782

FusselTV opened this issue Jan 9, 2025 · 6 comments

Comments

@FusselTV
Copy link

FusselTV commented Jan 9, 2025

After creating the admin user and trying to login i only get "Welcome. Redirecting to homepage..." and get redirected to the login page. The user is created and i also get an error when entering a wrong password...

services:
  kutt:
    container_name: kutt
    image: kutt/kutt:main
    restart: unless-stopped
    volumes:
       - /docker/appdata/kutt:/var/lib/kutt
    environment:
      JWT_SECRET: "sdfsdf"
      DB_FILENAME: "/var/lib/kutt/data.sqlite"
    ports:
      - 3000:3000

image

@poeti8
Copy link
Member

poeti8 commented Jan 9, 2025

i also get an error when entering a wrong password

Well you should get an error when you enter a wrong password. Enter the same password you entered during the signup.

@FusselTV
Copy link
Author

FusselTV commented Jan 9, 2025

I mentioned that I get an error when entering a wrong password to indicate that the user was created successfully. However, when I enter the correct password, I am redirected to the login screen again, and nothing happens.

@poeti8
Copy link
Member

poeti8 commented Jan 9, 2025

@FusselTV Do you get an error that your credentials are wrong?

Are there any other environment variables set?

@FusselTV
Copy link
Author

FusselTV commented Jan 9, 2025

2025-01-09_14-10-17.mp4

@poeti8
Copy link
Member

poeti8 commented Jan 9, 2025

Ah, I think I know why. I guess that the JWT_SECRET value you have in your compose file is somehow different from the one on the app. If you have a .env file or you have passed variables directly, make sure that JWT_SECRET has the same value there.

@FusselTV
Copy link
Author

FusselTV commented Jan 9, 2025

I only use the compose file shown in the video, and the bind mount points to an empty folder without a .env file in it. After running the compose file, a data.sqlite file is created, but I cannot find any other location containing a JWT_SECRET. Can you reproduce this behavior using the Docker Hub image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants