mirror of
https://github.com/fazo96/homework.git
synced 2025-01-24 14:24:20 +01:00
removed old commented code
This commit is contained in:
parent
10cfc2d638
commit
0f195f57e8
12
app.coffee
12
app.coffee
@ -1,18 +1,6 @@
|
|||||||
notes = new Meteor.Collection "notes"
|
notes = new Meteor.Collection "notes"
|
||||||
|
|
||||||
if Meteor.isServer
|
if Meteor.isServer
|
||||||
#notes.insert { content: "Example" } unless notes.find().fetch().length > 0
|
|
||||||
# Accounts
|
|
||||||
###
|
|
||||||
Accounts.registerLoginHandler (req) ->
|
|
||||||
return null unless req.mail and req.password
|
|
||||||
return null unless req.mail.length > 4 and req.pass.length >= 8
|
|
||||||
user = Meteor.users.findOne { mail: req.mail }
|
|
||||||
if not user
|
|
||||||
user = Meteor.insert { mail: req.mail, password: req.password }
|
|
||||||
{ id: user._id }
|
|
||||||
###
|
|
||||||
|
|
||||||
Accounts.config {
|
Accounts.config {
|
||||||
sendVerificationEmail: true
|
sendVerificationEmail: true
|
||||||
loginExpirationInDays: 1
|
loginExpirationInDays: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user