1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-10 12:14:22 +01:00

fix new account default dateformat

This commit is contained in:
fazo96 2014-09-27 08:50:28 +02:00
parent e784463de5
commit d4d89cea3f
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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