Skip to content

Commit

Permalink
Close registration on project-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyf committed Jan 13, 2017
1 parent 6708ef1 commit 79aa3ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/project-manager/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,20 @@ var app = express();

app.get('/', function(req, res){
if(typeof req.user != "undefined" && req.user.id == null){
res.render('registration', { user: req.user });

// res.render('registration', { user: req.user });
res.render('regclosed');
}else{
res.render('index', { user: req.user });
}
});

app.post('/registration', function(req,res){

/*
var stmt = db.prepare("INSERT INTO oauthusers VALUES (NULL, ?, ?)");
stmt.run(req.user.oauthcode, req.body.displayName, function(err){
req.user.id = this.lastID;
res.redirect(config.BASEURL);
});
});*/
});

app.get('/account', ensureAuthenticated, function(req, res){
Expand Down
2 changes: 2 additions & 0 deletions plugins/project-manager/views/regclosed.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<p>Registration is currently closed. For more information about CONSTRUIT!,
please visit our <a href="https://www2.warwick.ac.uk/fac/sci/dcs/research/em/construit/">webpage</a>.</p>

0 comments on commit 79aa3ef

Please sign in to comment.