From 671269ca8d35d6384e863bc56912456f089865e2 Mon Sep 17 00:00:00 2001 From: Abhishek Shroff Date: Wed, 16 Jul 2025 01:57:15 +0530 Subject: [PATCH] [server][api] Rename magic_links => magic_link --- server/internal/api/v1/auth/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/internal/api/v1/auth/routes.go b/server/internal/api/v1/auth/routes.go index 9ed5c123..2848dafd 100644 --- a/server/internal/api/v1/auth/routes.go +++ b/server/internal/api/v1/auth/routes.go @@ -20,7 +20,7 @@ import ( type PasswordConfigResponse struct { Password bool `json:"password"` PasswordReset bool `json:"password_reset"` - MagicLinks bool `json:"magic_links"` + MagicLink bool `json:"magic_link"` OpenIDProviders []openid.Provider `json:"openid_providers"` } @@ -66,10 +66,10 @@ func SetupRoutes(r *gin.RouterGroup, logger *zerolog.Logger) { group.POST("/token/login", handleTokenLogin) if auth.MagicLinksEnabled() { if mail.Configured() { - passwordConfigResponse.MagicLinks = true + passwordConfigResponse.MagicLink = true group.POST("/token/request", handleTokenRequest) } else { - logger.Warn().Msg("Magic login links enabled but mail not configured") + logger.Warn().Msg("Magic link login enabled but mail not configured") } }