Fixed empty object getting called
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
ref #99
This commit is contained in:
@@ -95,7 +95,7 @@ export class CreateUser {
|
|||||||
if (!this.email) {
|
if (!this.email) {
|
||||||
throw new UserEmailNeededError();
|
throw new UserEmailNeededError();
|
||||||
}
|
}
|
||||||
if (this.username.includes("@")) { throw new UsernameContainsIllegalCharacterError(); }
|
if (this.username?.includes("@")) { throw new UsernameContainsIllegalCharacterError(); }
|
||||||
|
|
||||||
let password_strength = passwordStrength(this.password);
|
let password_strength = passwordStrength(this.password);
|
||||||
if (!password_strength.contains.includes("uppercase")) { throw new PasswordMustContainUppercaseLetterError(); }
|
if (!password_strength.contains.includes("uppercase")) { throw new PasswordMustContainUppercaseLetterError(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user