From d4d89cea3f654d917688c0cdaec9c9b106242d05 Mon Sep 17 00:00:00 2001 From: fazo96 Date: Sat, 27 Sep 2014 08:50:28 +0200 Subject: [PATCH] fix new account default dateformat --- client/client.coffee | 1 - server/server.coffee | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/client.coffee b/client/client.coffee index f9fd7f8..7fb2b9d 100644 --- a/client/client.coffee +++ b/client/client.coffee @@ -249,7 +249,6 @@ registerRequest = (e,template) -> Accounts.createUser { email: mail, password: pass - dateformat: "MM/DD/YYYY" }, (err) -> if err then errCallback err else Router.go 'confirmEmail' catch err showError msg: err diff --git a/server/server.coffee b/server/server.coffee index 9f2f154..b054c45 100644 --- a/server/server.coffee +++ b/server/server.coffee @@ -24,6 +24,11 @@ Meteor.publish "archive", -> if userValidated getUser(@userId) notes.find userId: @userId, archived: yes +# Custom new account default settings +Accounts.onCreateUser (options, user) -> + user.dateformat = options.dateformat or "MM/DD/YYYY" + return user + # Database Permissions # Allow all users to insert, update and remove their notes. notes.allow insert: isUsers, update: isUsers, remove: isUsers