Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix bug in reset-password regex check (#372)

Leendert de Borst7c1aaab291b2
diff --git a/.github/workflows/docker-compose-build.yml b/.github/workflows/docker-compose-build.yml
index 73c879a4e..09ee1acfc 100644
--- a/.github/workflows/docker-compose-build.yml
+++ b/.github/workflows/docker-compose-build.yml
@@ -91,8 +91,8 @@ jobs:
- name: Test install.sh reset-password output
run: |
output=$(./install.sh reset-password)
- if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9]{8,}.*'; then
- echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 chars>'"
+ if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9+/=]{8,}.*'; then
+ echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 base64 chars>'"
echo "Actual output: $output"
exit 1
else
diff --git a/.github/workflows/docker-compose-pull.yml b/.github/workflows/docker-compose-pull.yml
index 45b309f62..1cadb34cd 100644
--- a/.github/workflows/docker-compose-pull.yml
+++ b/.github/workflows/docker-compose-pull.yml
@@ -91,7 +91,7 @@ jobs:
- name: Test install.sh reset-password output
run: |
output=$(./install.sh reset-password)
- if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9]{8,}.*'; then
+ if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9+/=]{8,}.*'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 base64 chars>'"
echo "Actual output: $output"
exit 1