From 9e8b1731a334bb1d07a071c44c368c5f77139cd4 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 2 Sep 2020 05:19:22 +0200 Subject: Accounts: Login only with Username --- client/components/main/layouts.js | 2 +- config/accounts.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js index be1402e9..f51b03c3 100644 --- a/client/components/main/layouts.js +++ b/client/components/main/layouts.js @@ -121,7 +121,7 @@ Template.defaultLayout.events({ }); async function authentication(event, templateInstance) { - const match = $('#at-field-username_and_email').val(); + const match = $('#at-field-username').val(); const password = $('#at-field-password').val(); if (!match || !password) return undefined; diff --git a/config/accounts.js b/config/accounts.js index 4964adee..161478a5 100644 --- a/config/accounts.js +++ b/config/accounts.js @@ -9,7 +9,6 @@ AccountsTemplates.addFields([ required: true, minLength: 2, }, - emailField, passwordField, { _id: 'invitationcode', -- cgit v1.2.3-1-g7c22