Start verification just after last experiment
This commit is contained in:
parent
9117299eb2
commit
ab3ca50f76
|
@ -1,4 +1,8 @@
|
||||||
|
var db = require('../prototype/dbrequests.js');
|
||||||
|
|
||||||
module.exports.index = function(req, res) {
|
module.exports.index = function(req, res) {
|
||||||
|
db.verifyUser(req.session.userId, function() {});
|
||||||
|
|
||||||
res.setHeader('Content-Type', 'text/html');
|
res.setHeader('Content-Type', 'text/html');
|
||||||
|
|
||||||
res.render('index.jade', res.locals, function(err, result) {
|
res.render('index.jade', res.locals, function(err, result) {
|
||||||
|
|
|
@ -100,7 +100,6 @@ block content
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
document.getElementById('submitButton').disabled = true;
|
document.getElementById('submitButton').disabled = true;
|
||||||
if (validateForm()) {
|
if (validateForm()) {
|
||||||
console.log("Ok");
|
|
||||||
document.getElementById('form').submit();
|
document.getElementById('form').submit();
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('submitButton').disabled = false;
|
document.getElementById('submitButton').disabled = false;
|
||||||
|
|
|
@ -18,7 +18,6 @@ module.exports.index = function(req, res) {
|
||||||
res.setHeader('Content-Type', 'text/html');
|
res.setHeader('Content-Type', 'text/html');
|
||||||
|
|
||||||
res.render('vcode.jade', res.locals, function(err, result) {
|
res.render('vcode.jade', res.locals, function(err, result) {
|
||||||
console.log(err);
|
|
||||||
res.send(result);
|
res.send(result);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ var Log = require('../../lib/NodeLog.js');
|
||||||
|
|
||||||
module.exports.index = function(req, res) {
|
module.exports.index = function(req, res) {
|
||||||
|
|
||||||
db.verifyUser(req.session.userId, function() {});
|
|
||||||
|
|
||||||
var text = '';
|
var text = '';
|
||||||
|
|
||||||
for (var i in req.body) {
|
for (var i in req.body) {
|
||||||
|
|
Loading…
Reference in New Issue