summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2020-09-02 05:19:22 +0200
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2020-09-02 15:22:39 +0200
commit9e8b1731a334bb1d07a071c44c368c5f77139cd4 (patch)
tree5adcc1a724fcc6ca9ad2ac15c3235605e51e816c
parent268e2c269f77e1c3c11a1ed25a9c20bfaab27292 (diff)
downloadwekan-9e8b1731a334bb1d07a071c44c368c5f77139cd4.tar.gz
wekan-9e8b1731a334bb1d07a071c44c368c5f77139cd4.tar.bz2
wekan-9e8b1731a334bb1d07a071c44c368c5f77139cd4.zip
Accounts: Login only with Username
-rw-r--r--client/components/main/layouts.js2
-rw-r--r--config/accounts.js1
2 files changed, 1 insertions, 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',