Skip to content

Commit

Permalink
fix(server): do not force sign in password length (#6188)
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
forehalo committed Mar 19, 2024
1 parent bba1a95 commit 797e3c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/backend/server/src/core/auth/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export class AuthController {
}

if (credential.password) {
validators.assertValidPassword(credential.password);
const user = await this.auth.signIn(
credential.email,
credential.password
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/server/src/core/auth/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class AuthResolver {
@Args('email') email: string,
@Args('password') password: string
) {
validators.assertValidCredential({ email, password });
validators.assertValidEmail(email);
const user = await this.auth.signIn(email, password);
await this.auth.setCookie(ctx.req, ctx.res, user);
ctx.req.user = user;
Expand Down

0 comments on commit 797e3c5

Please sign in to comment.