Skip to content

Commit f1bf8b4

Browse files
authored
Change sign in validation (#42)
1 parent 7e79b3c commit f1bf8b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/passport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import type {PlatformAuthorizedUser} from '../types/user';
1010
import {encodeId} from '../utils/ids';
1111

1212
import {comparePasswords} from './passwords';
13-
import {makeParser, z, zc} from './zod';
13+
import {makeParser, z} from './zod';
1414

1515
const parseRequest = makeParser(
1616
z.strictObject({
17-
login: zc.login(),
18-
password: zc.password(),
17+
login: z.string().min(1),
18+
password: z.string().min(1),
1919
}),
2020
);
2121

0 commit comments

Comments
 (0)