Merge claude/1

This commit is contained in:
librelad 2026-05-24 17:06:46 +01:00
commit 98444de65e
4 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ authAdapter_adguard_setPassword() {
fi
local bcrypt
bcrypt=$(sudo htpasswd -bnBC 10 "" "$password" | tr -d ':\n')
bcrypt=$(htpasswd -bnBC 10 "" "$password" | tr -d ':\n')
[[ -z "$bcrypt" ]] && { isError "bcrypt failed."; return 1; }
local tmp

View File

@ -8,7 +8,7 @@ _focalboardBcrypt() {
if ! command -v htpasswd >/dev/null 2>&1; then
isError "htpasswd is required to bcrypt the password."; return 1
fi
sudo htpasswd -bnBC 10 "" "$1" | tr -d ':\n'
htpasswd -bnBC 10 "" "$1" | tr -d ':\n'
}
authAdapter_focalboard_setPassword() {

View File

@ -8,7 +8,7 @@ _invidiousBcrypt() {
if ! command -v htpasswd >/dev/null 2>&1; then
isError "htpasswd is required to bcrypt the password."; return 1
fi
sudo htpasswd -bnBC 10 "" "$1" | tr -d ':\n'
htpasswd -bnBC 10 "" "$1" | tr -d ':\n'
}
authAdapter_invidious_setPassword() {

View File

@ -7,7 +7,7 @@ hashPassword()
# htpasswd first (local, instant). docker fallback pulls a ~50MB image.
if command -v htpasswd &>/dev/null; then
local bcrypt_hash
bcrypt_hash=$(sudo htpasswd -bnBC 10 "" "$password" | tr -d ':\n')
bcrypt_hash=$(htpasswd -bnBC 10 "" "$password" | tr -d ':\n')
if [[ -n "$bcrypt_hash" ]]; then
bcrypt_hash=$(echo "$bcrypt_hash" | awk -F= '{print $NF}')
local escaped_hash