mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-30 23:28:45 +00:00
chore(auth): remove debug log statement for user in authentication flow
This commit is contained in:
@@ -34,19 +34,9 @@ import {
|
|||||||
import { Switch } from "@/components/ui/switch";
|
import { Switch } from "@/components/ui/switch";
|
||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
|
|
||||||
const hostnameRegex =
|
|
||||||
/^(?=.{1,253}$)(?!-)[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\.(?!-)[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$/;
|
|
||||||
|
|
||||||
const addServerDomain = z
|
const addServerDomain = z
|
||||||
.object({
|
.object({
|
||||||
domain: z
|
domain: z.string().trim().toLowerCase(),
|
||||||
.string()
|
|
||||||
.trim()
|
|
||||||
.toLowerCase()
|
|
||||||
.regex(
|
|
||||||
hostnameRegex,
|
|
||||||
"Invalid hostname (no http://, no slash, no port).",
|
|
||||||
),
|
|
||||||
letsEncryptEmail: z.string(),
|
letsEncryptEmail: z.string(),
|
||||||
https: z.boolean().optional(),
|
https: z.boolean().optional(),
|
||||||
certificateType: z.enum(["letsencrypt", "none", "custom"]),
|
certificateType: z.enum(["letsencrypt", "none", "custom"]),
|
||||||
|
|||||||
@@ -127,8 +127,6 @@ const { handler, api } = betterAuth({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(user);
|
|
||||||
|
|
||||||
if (IS_CLOUD) {
|
if (IS_CLOUD) {
|
||||||
try {
|
try {
|
||||||
const hutk = getHubSpotUTK(
|
const hutk = getHubSpotUTK(
|
||||||
|
|||||||
Reference in New Issue
Block a user