Skip to content

[2.x] fix(core): skip password check on update page for passwordless drivers#4435

Merged
imorland merged 3 commits into
flarum:2.xfrom
datlechin:fix/update-skip-password-for-sqlite
Mar 14, 2026
Merged

[2.x] fix(core): skip password check on update page for passwordless drivers#4435
imorland merged 3 commits into
flarum:2.xfrom
datlechin:fix/update-skip-password-for-sqlite

Conversation

@datlechin

@datlechin datlechin commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Summary

The update page always asks for a database password, but SQLite (and any driver without credentials) never stores a password key in config. This causes the strict comparison to always fail since "" !== null.

…se drivers

SQLite does not store a password in config, so the strict comparison
`databasePassword !== null` always fails. This conditionally skips the
password form and validation when no password is configured.
@datlechin datlechin requested a review from a team as a code owner March 13, 2026 03:31
@datlechin datlechin changed the title fix(core): skip password check on update page for passwordless drivers [2.x] fix(core): skip password check on update page for passwordless drivers Mar 13, 2026
@imorland imorland added this to the 2.0.0-beta.8 milestone Mar 14, 2026
@imorland imorland merged commit 82b1c7f into flarum:2.x Mar 14, 2026
21 checks passed
@datlechin datlechin deleted the fix/update-skip-password-for-sqlite branch March 15, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants