Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
https://stirlingpdf.com
MIT License
46.33k stars 3.77k forks source link

Inital Username and Password #1930

Open bert3ch opened 2 months ago

bert3ch commented 2 months ago

Hello everyone,

I'm facing an issue while setting up Stirling PDF with initial login credentials. There are two ways to run Stirling PDF:

Running as a service: In the /opt/Stirling-PDF/configs/settings.yml file, I’ve set enableLogin: true and added the initial username as test and password as test123. However, when I try to log in, it only accepts admin-stirling and doesn't recognize the initial username and password I configured.

Running manually: When I place the same configuration in the .git directory and run Stirling manually, it correctly accepts the initial username and password as test and test123.

Has anyone encountered this issue where the initial credentials don’t work when running Stirling as a service? How can I solve this problem and ensure that the correct username and password are accepted when running it as a service?

Thanks in advance for any suggestions!

Frooodle commented 2 months ago

If you have ran the application once before using the default login it provides a default login for you

The initial user is just that, the initial user, and since app was ran once before these were configured it created that initial user for you

You should be able to resolve this multiple ways

Delete the database file in configs folder and restart app

Or just change the existing default accounts username and password via settings menu