Explorar o código

WIP: Show TBD message if username is duplicated

Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
524e5323db
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/models/external-account.js

+ 2 - 0
lib/models/external-account.js

@@ -60,6 +60,8 @@ class ExternalAccount {
         else {
           debug(`ExternalAccount '${accountId}' is not found, it is going to be registered.`);
 
+          // TODO count and throw error if username is dupricated
+
           return createUserFunction().then((user) => {
               return this.create({ providerType: 'ldap', accountId, user: user._id });
             });