Procházet zdrojové kódy

WIP: Show TBD message if username is duplicated

Yuki Takei před 8 roky
rodič
revize
524e5323db
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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 });
             });