mirror of
https://github.com/fazo96/homework.git
synced 2025-01-25 14:34:20 +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 {
|
Accounts.createUser {
|
||||||
email: mail,
|
email: mail,
|
||||||
password: pass
|
password: pass
|
||||||
dateformat: "MM/DD/YYYY"
|
|
||||||
}, (err) -> if err then errCallback err else Router.go 'confirmEmail'
|
}, (err) -> if err then errCallback err else Router.go 'confirmEmail'
|
||||||
catch err
|
catch err
|
||||||
showError msg: err
|
showError msg: err
|
||||||
|
@ -24,6 +24,11 @@ Meteor.publish "archive", ->
|
|||||||
if userValidated getUser(@userId)
|
if userValidated getUser(@userId)
|
||||||
notes.find userId: @userId, archived: yes
|
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
|
# Database Permissions
|
||||||
# Allow all users to insert, update and remove their notes.
|
# Allow all users to insert, update and remove their notes.
|
||||||
notes.allow insert: isUsers, update: isUsers, remove: isUsers
|
notes.allow insert: isUsers, update: isUsers, remove: isUsers
|
||||||
|
Loading…
Reference in New Issue
Block a user