Compare commits
1 Commits
5e16a90447
...
a8fb815103
| Author | SHA1 | Date | |
|---|---|---|---|
| a8fb815103 |
@@ -60,7 +60,18 @@ main() {
|
|||||||
log_info "Updating admin password..."
|
log_info "Updating admin password..."
|
||||||
if update_admin_password "$current_password" "$ADMIN_PASSWORD"; then
|
if update_admin_password "$current_password" "$ADMIN_PASSWORD"; then
|
||||||
log_success "Admin password updated successfully"
|
log_success "Admin password updated successfully"
|
||||||
current_password="$ADMIN_PASSWORD"
|
|
||||||
|
# Give Stalwart a moment to apply the change
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Verify the new password works
|
||||||
|
if test_auth "$ADMIN_PASSWORD"; then
|
||||||
|
log_success "New password verified"
|
||||||
|
current_password="$ADMIN_PASSWORD"
|
||||||
|
else
|
||||||
|
log_error "New password verification failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
log_error "Failed to update admin password"
|
log_error "Failed to update admin password"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user