mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(2fa): improve error handling and display for two-factor authentication setup
- Handle potential errors when enabling two-factor authentication - Provide more detailed error messages for password verification - Update client-side error handling to display specific error messages - Add base URL configuration for non-cloud environments
This commit is contained in:
@@ -14,6 +14,9 @@ const { handler, api } = betterAuth({
|
||||
provider: "pg",
|
||||
schema: schema,
|
||||
}),
|
||||
...(!IS_CLOUD && {
|
||||
baseURL: "http://localhost:3000",
|
||||
}),
|
||||
logger: {
|
||||
disabled: process.env.NODE_ENV === "production",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user