This commit is contained in:
2026-08-17 21:20:45 +02:00
parent 321f11e817
commit 6fcdc74843
157 changed files with 2895 additions and 7544 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ import (
"context"
"fmt"
"log"
"net/url"
"os"
"path/filepath"
"strings"
"time"
"github.com/descrybe/descrybe-v2/apps/api/internal/auth"
"github.com/descrybe/descrybe-v2/apps/api/internal/mail"
"github.com/google/uuid"
"github.com/jackc/pgx/v5/pgxpool"
)
@@ -37,7 +37,7 @@ func webOrigin() string {
}
func setPasswordInviteURL(token string) string {
return webOrigin() + "/accept-invite?token=" + url.QueryEscape(token)
return mail.AcceptInviteURL(webOrigin(), token)
}
// prepareSetPasswordHooks creates invites for active users with must_set_password=true.