We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e79b3c commit f1bf8b4Copy full SHA for f1bf8b4
src/components/passport.ts
@@ -10,12 +10,12 @@ import type {PlatformAuthorizedUser} from '../types/user';
10
import {encodeId} from '../utils/ids';
11
12
import {comparePasswords} from './passwords';
13
-import {makeParser, z, zc} from './zod';
+import {makeParser, z} from './zod';
14
15
const parseRequest = makeParser(
16
z.strictObject({
17
- login: zc.login(),
18
- password: zc.password(),
+ login: z.string().min(1),
+ password: z.string().min(1),
19
}),
20
);
21
0 commit comments