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

Fresh install - Can't login with admin credentials #769

Open
dzegarra opened this issue Feb 19, 2023 · 3 comments
Open

Fresh install - Can't login with admin credentials #769

dzegarra opened this issue Feb 19, 2023 · 3 comments

Comments

@dzegarra
Copy link

Hi!

I'm unable to log in using the admin credentials input during the first step of the fresh installation wizard of the release v4.11.1.

You can see a demonstration of my installation process in the gif below.

antragsgruen

As you can see, nothing happens when I submit the correct password and it returns an error when the password is incorrect.

And this is what the users table has:

image

Am I missing something?

@CatoTH
Copy link
Owner

CatoTH commented Feb 20, 2023

If not even an error message appears, my guess would be the cookies cannot be set, maybe because of a "misunderstanding" about what the base domain is. You might have a look at domainPlain in the config.json, if this is correct (including http ./. https). domainSubdomain is probably not set, that would be okay.

@dzegarra
Copy link
Author

The domainPlain looks alright... I think. Here you have the content of the entire config.json file. Maybe you find something that calls your attention ;)

{
    "dbConnection": {
        "dsn": "mysql:host=antragsgruen-mariadb;dbname=antragsgruen",
        "emulatePrepare": true,
        "username": "antragsgruen",
        "password": "secret",
        "charset": "utf8mb4"
    },
    "siteSubdomain": "std",
    "redis": null,
    "prettyUrl": true,
    "tablePrefix": "",
    "resourceBase": "\/",
    "baseLanguage": "en",
    "randomSeed": "ckY0agMyNGUOR87gziYZH4Hq381bEBlT",
    "multisiteMode": false,
    "domainPlain": "http:\/\/localhost:8080\/",
    "domainSubdomain": null,
    "cookieDomain": null,
    "hasSaml": false,
    "prependWWWToSubdomain": true,
    "confirmEmailAddresses": true,
    "dataPrivacyCheckbox": false,
    "mailFromName": "Test",
    "mailFromEmail": "[email protected]",
    "adminUserIds": [
        1
    ],
    "siteBehaviorClasses": [],
    "authClientCollection": [],
    "blockedSubdomains": [
        "www",
        "rest",
        "ftp",
        "smtp",
        "imap"
    ],
    "autoLoginDuration": 31536000,
    "loginCaptcha": false,
    "xelatexPath": null,
    "xdvipdfmx": null,
    "lualatexPath": null,
    "pdfExportConcat": true,
    "pdfExportIntegFrame": false,
    "localMessages": [],
    "imageMagickPath": null,
    "sitePurgeAfterDays": null,
    "binaryFilePath": null,
    "viewCacheFilePath": null,
    "mode": "production",
    "updateKey": null,
    "plugins": [],
    "sitePlugins": [],
    "mailService": {
        "transport": "sendmail"
    }
}

@dzegarra
Copy link
Author

About cookies, I took some screenshots for you.

This is a request after I clear all data for this site. So. I fresh new load of the page.

image

Next, the POST request sending my admin credentials to the backend.
image

Finally, since the previous POST request returns a 302 redirection to http://localhost:8080, this is what my browser gets on that last GET request.
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