0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(core): should not guard input when verifying password (#3329)

This commit is contained in:
Charles Zhao 2023-03-08 19:27:42 +08:00 committed by GitHub
parent 1f0bc8f3f4
commit 4675ce6dbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ export default function userRoutes<T extends AuthedMeRouter>(
router.post( router.post(
'/password/verify', '/password/verify',
koaGuard({ koaGuard({
body: object({ password: string().regex(passwordRegEx) }), body: object({ password: string() }),
}), }),
async (ctx, next) => { async (ctx, next) => {
const { id: userId } = ctx.auth; const { id: userId } = ctx.auth;