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:
parent
1f0bc8f3f4
commit
4675ce6dbc
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ export default function userRoutes<T extends AuthedMeRouter>(
|
|||
router.post(
|
||||
'/password/verify',
|
||||
koaGuard({
|
||||
body: object({ password: string().regex(passwordRegEx) }),
|
||||
body: object({ password: string() }),
|
||||
}),
|
||||
async (ctx, next) => {
|
||||
const { id: userId } = ctx.auth;
|
||||
|
|
Loading…
Add table
Reference in a new issue