2014-04-09 07:17:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
|
2014-04-09 07:22:57 -04:00
|
|
|
registerPage : (req, res)->
|
2014-04-09 07:17:50 -04:00
|
|
|
sharedProjectData =
|
|
|
|
project_name:req.query.project_name
|
|
|
|
user_first_name:req.query.user_first_name
|
|
|
|
|
|
|
|
newTemplateData = {}
|
|
|
|
if req.session.templateData?
|
|
|
|
newTemplateData.templateName = req.session.templateData.templateName
|
|
|
|
|
|
|
|
res.render 'user/register',
|
|
|
|
title: 'Register'
|
|
|
|
redir: req.query.redir
|
|
|
|
sharedProjectData: sharedProjectData
|
|
|
|
newTemplateData: newTemplateData
|
2014-04-09 07:22:57 -04:00
|
|
|
new_email:req.query.new_email || ""
|
|
|
|
|
|
|
|
loginPage : (req, res)->
|
|
|
|
res.render 'user/login',
|
|
|
|
title: 'Login',
|
|
|
|
redir: req.query.redir
|
|
|
|
|
2014-04-09 07:26:59 -04:00
|
|
|
passwordResetPage : (req, res)->
|
|
|
|
res.render 'user/passwordReset',
|
|
|
|
title: 'Password Reset',
|