Compare commits

..

1 Commits

Author SHA1 Message Date
0014789f68 feat: initial version
Some checks failed
Test Stalwart Installation Action / Error Handling Tests (pull_request) Successful in 18s
Test Stalwart Installation Action / Installation with Admin Password (pull_request) Failing after 22s
Test Stalwart Installation Action / Basic Installation (No Config) (pull_request) Successful in 45s
Test Stalwart Installation Action / Full Configuration (Domains + Users) (pull_request) Failing after 1m40s
Test Stalwart Installation Action / Test on Ubuntu ubuntu-20.04 (pull_request) Has been cancelled
Test Stalwart Installation Action / Test on Ubuntu ubuntu-22.04 (pull_request) Has been cancelled
Test Stalwart Installation Action / Test on Ubuntu ubuntu-24.04 (pull_request) Has been cancelled
Test Stalwart Installation Action / Test Summary (pull_request) Has been cancelled
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-02-14 23:57:07 -05:00

View File

@@ -143,10 +143,9 @@ authenticate() {
local token
local http_code
# Try authentication with "account" field (Stalwart uses "account" not "login")
response=$(curl -s -w "\n%{http_code}" -X POST "${API_URL}/authenticate" \
-H "Content-Type: application/json" \
-d "{\"account\":\"admin\",\"password\":\"${password}\"}" 2>&1)
# Stalwart uses Basic Authentication
response=$(curl -s -w "\n%{http_code}" -X GET "${API_URL}/authenticate" \
-u "admin:${password}" 2>&1)
http_code=$(echo "$response" | tail -n 1)
response=$(echo "$response" | sed '$d')