From bcf0ca083f9048e104291b17a5a5006a3ffa28fa Mon Sep 17 00:00:00 2001 From: nunohvidal Date: Thu, 21 Aug 2014 11:31:20 +0100 Subject: [PATCH 01/11] Fix for #221 Fix for Issue #221 "Match failed" error after creating user if passwordSignupFields is set to 'USERNAME_ONLY' https://github.com/Differential/accounts-entry/issues/221 --- server/entry.coffee | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/server/entry.coffee b/server/entry.coffee index fd467daf..819914e0 100644 --- a/server/entry.coffee +++ b/server/entry.coffee @@ -18,13 +18,21 @@ Meteor.startup -> entryCreateUser: (user) -> check user, Object profile = AccountsEntry.settings.defaultProfile || {} - if user.username + # both username & email provided + if user.username && user.email userId = Accounts.createUser username: user.username, email: user.email, password: user.password, profile: _.extend(profile, user.profile) - else + # only username provided + else if user.username && !user.email + userId = Accounts.createUser + username: user.username, + password: user.password, + profile: _.extend(profile, user.profile) + # only email provided + else if user.email && !user.username userId = Accounts.createUser email: user.email password: user.password From 7d3eadbe581e47e044f2a6691c6d43a9c1c36203 Mon Sep 17 00:00:00 2001 From: nunohvidal Date: Thu, 21 Aug 2014 11:36:46 +0100 Subject: [PATCH 02/11] Fix for #229 Fix for #229 No submission button on sign-in page? --- client/views/signIn/signIn.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/views/signIn/signIn.html b/client/views/signIn/signIn.html index 174a087e..fbc7a025 100644 --- a/client/views/signIn/signIn.html +++ b/client/views/signIn/signIn.html @@ -35,8 +35,8 @@

{{t9n "signIn"}}

{{#unless isUsernameOnly}}

{{t9n "forgotPassword"}}

- {{/unless}} + {{/if}} {{#if showCreateAccountLink}} From 3a95dfd72ce9f1b0727aaf9719574aa89130bc09 Mon Sep 17 00:00:00 2001 From: nunohvidal Date: Wed, 27 Aug 2014 10:48:34 +0100 Subject: [PATCH 03/11] t9n "OR" --- client/views/signUp/signUp.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/views/signUp/signUp.html b/client/views/signUp/signUp.html index 6b1d1132..b2a693c0 100644 --- a/client/views/signUp/signUp.html +++ b/client/views/signUp/signUp.html @@ -16,7 +16,7 @@

{{t9n "createAccount"}}

{{/each}} {{#if passwordLoginService}}