forked from baron/baron-sso
하드코딩 변수 관리
This commit is contained in:
@@ -141,9 +141,11 @@ func (h *AuthHandler) InitEnchantedLink(c *fiber.Ctx) error {
|
||||
h.RedisService.Set(prefixToken+token, fmt.Sprintf(`{"pendingRef":"%s","loginId":"%s"}`, pendingRef, loginID), defaultExpiration)
|
||||
|
||||
// Send SMS
|
||||
// Frontend URL should be dynamic or env based, but restoring hardcoded/env logic
|
||||
// The frontend uses ssologin.hmac.kr
|
||||
frontendURL := "http://ssologin.hmac.kr"
|
||||
// Frontend URL should be dynamic or env based
|
||||
frontendURL := os.Getenv("FRONTEND_URL")
|
||||
if frontendURL == "" {
|
||||
frontendURL = "http://ssologin.hmac.kr"
|
||||
}
|
||||
link := fmt.Sprintf("%s/verify/%s", frontendURL, token)
|
||||
content := fmt.Sprintf("[Baron SSO] 로그인 링크: %s", link)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user