mirror of
https://github.com/wassname/talk.git
synced 2026-10-02 12:50:49 +08:00
don't use regex on existing lists
This commit is contained in:
1 parent
7bc848b801
commit
b6eaf210fe
2 files changed
+2
-4
No files matched your search
@@ -342,7 +342,6 @@ const isValidDisplayName = (displayName) => {
|
||||
UserService.createLocalUser = (email, password, displayName) => {
|
||||
|
||||
if (!email) {
|
||||
|
||||
return Promise.reject(errors.ErrMissingEmail);
|
||||
}
|
||||
|
||||
@@ -350,7 +349,6 @@ UserService.createLocalUser = (email, password, displayName) => {
|
||||
displayName = displayName.toLowerCase().trim();
|
||||
|
||||
if (!password) {
|
||||
|
||||
return Promise.reject(errors.ErrMissingPassword);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user