mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
added email to registration fields, email existence check
This commit is contained in:
@@ -7,22 +7,17 @@ var express = require('express'),
|
||||
(function(app) {
|
||||
var templates = global.templates;
|
||||
|
||||
app.get('/test', function(req, res) {
|
||||
var body = 'testing';
|
||||
res.send(body);
|
||||
});
|
||||
app.get('/', function(req, res) {
|
||||
console.log(templates['header']);
|
||||
res.send(templates['header'] + templates['home'] + templates['footer']);
|
||||
});
|
||||
|
||||
app.get('/login', function(req, res) {
|
||||
var body = templates['header'] + templates['login'] + templates['footer'];
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
res.setHeader('Content-Length', body.length);
|
||||
res.end(body);
|
||||
res.send(templates['header'] + templates['login'] + templates['footer']);
|
||||
});
|
||||
|
||||
app.get('/reset', function(req, res) {
|
||||
res.send(templates['header'] + templates['reset'] + templates['footer']);
|
||||
});
|
||||
|
||||
app.get('/register', function(req, res) {
|
||||
res.send(templates['header'] + templates['register'] + templates['footer']);
|
||||
|
||||
Reference in New Issue
Block a user