Merge claude/1
This commit is contained in:
commit
98444de65e
@ -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
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user