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

Wartungsmodus inaktiv, solange kein Passwort hinterlegt wurde #104

Closed
iceman-fx opened this issue Jul 23, 2024 · 2 comments · Fixed by #108
Closed

Wartungsmodus inaktiv, solange kein Passwort hinterlegt wurde #104

iceman-fx opened this issue Jul 23, 2024 · 2 comments · Fixed by #108

Comments

@iceman-fx
Copy link
Member

iceman-fx commented Jul 23, 2024

Der Wartungsmodus wird nicht aktiviert (Seite ist weiterhin komplett aufrufbar), solange kein Passwort zwingend angegeben wird.
Das soll sicher so nicht sein, da das Passwort nur optional ist.

Redaxo: 5.17.1
Maintenance: 3.0.0

@alxndr-w
Copy link
Member

Für mich zum Nachvollziehen, warum kein Passwort hinterlegt war: Wurde beim Updaten das Passwort übernommen / war vorher keins hinterlegt / hast du das, was standardmäßig hinterlegt wird, wieder rausgelöscht?

@alxndr-w
Copy link
Member

Das Problem ist einfach nachzuvollziehen: "Kein Passwort" entspricht dem abgefragten Secret:

if (rex_session('maintenance_secret', 'string', '') === strval($addon->getConfig('maintenance_secret'))) { // @phpstan-ignore-line
return true;
}

PR welcome

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

Successfully merging a pull request may close this issue.

2 participants