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

removed old commented code

This commit is contained in:
fazo96 2014-05-26 16:09:11 +02:00
parent 10cfc2d638
commit 0f195f57e8

View File

@ -1,18 +1,6 @@
notes = new Meteor.Collection "notes"
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 {
sendVerificationEmail: true
loginExpirationInDays: 1