When creating a account the email field is now optional.

This commit is contained in:
2018-03-06 19:18:51 +01:00
parent 34a97c069b
commit 6619184a45
3 changed files with 5 additions and 10 deletions

View File

@@ -15,8 +15,6 @@ class UserSecurity {
createNewUser(user, clearPassword) {
if (user.username.trim() === '') {
throw new Error('The username is empty.');
} else if (user.email.trim() === '') {
throw new Error('The email is empty.');
} else if (clearPassword.trim() === '') {
throw new Error('The password is empty.');
} else {