瀏覽代碼

WIP: Show TBD message if username is duplicated

Yuki Takei 8 年之前
父節點
當前提交
524e5323db
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 });
             });