linkding_auth.sh persists ADMIN_USER and ADMIN_PASSWORD when the first admin is created, and keeps the password in step on later resets of that account, but linkding.config declared neither — so both writes were no-ops and the WebUI credentials card never had anything to show. Predates the slot work; it only became visible once authPersistCfg started warning instead of failing silently. Added empty rather than RANDOMIZED*, because unlike bookstack or nextcloud nothing seeds a linkding account at install — the first user is created from the WebUI. A generated password would name an account that does not exist, and the card would display a password that cannot log in. Unslotted for the same reason: the slot number marks a value the installer generates, and this one is written at runtime by the tool. No AUTH_PROFILE key: nothing reads it (it exists only in a comment in auth_adapter.sh), and adding an unread key is what was just cleaned up elsewhere. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
11 lines
276 B
Bash
11 lines
276 B
Bash
#!/bin/bash
|
|
|
|
appMatrixCreateAccount() {
|
|
local args="$1"
|
|
authAdapterCall matrix createUser \
|
|
"$(authToolArg "$args" username)" \
|
|
"$(authToolArg "$args" password)" \
|
|
"$(authToolArg "$args" displayname)" \
|
|
"$(authToolArg "$args" admin)"
|
|
}
|