(
@Args('input') registerUserInput: RegisterUserInput,
)
| 61 | async resendConfirmationEmail( |
| 62 | @Args('input') input: ResendEmailInput, |
| 63 | ): Promise<EmailConfirmationResponse> { |
| 64 | return this.authService.resendVerificationEmail(input.email); |
| 65 | } |
| 66 | |
| 67 | @Mutation(() => User) |
| 68 | @Public() |
| 69 | async registerUser( |
| 70 | @Args('input') registerUserInput: RegisterUserInput, |
| 71 | ): Promise<User> { |
| 72 | if (registerUserInput.password.length < 6) { |
| 73 | throw new Error('Password must be at least 6 characters'); |
| 74 | } |