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