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:
parent
e784463de5
commit
d4d89cea3f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user