mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-30 19:06:47 -05:00
refactor(plugin): two-factor plugin disable endpoint shouldn't validate password length
This commit is contained in:
@@ -156,11 +156,9 @@ export const twoFactor = (options?: TwoFactorOptions) => {
|
||||
{
|
||||
method: "POST",
|
||||
body: z.object({
|
||||
password: z
|
||||
.string({
|
||||
description: "User password",
|
||||
})
|
||||
.min(8),
|
||||
password: z.string({
|
||||
description: "User password",
|
||||
}),
|
||||
}),
|
||||
use: [sessionMiddleware],
|
||||
metadata: {
|
||||
|
||||
Reference in New Issue
Block a user