aboutsummaryrefslogtreecommitdiffstats
path: root/admportal/server
diff options
context:
space:
mode:
Diffstat (limited to 'admportal/server')
-rw-r--r--admportal/server/router/routes/dbRoutes.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/admportal/server/router/routes/dbRoutes.js b/admportal/server/router/routes/dbRoutes.js
index d2f40b52..34a90c7b 100644
--- a/admportal/server/router/routes/dbRoutes.js
+++ b/admportal/server/router/routes/dbRoutes.js
@@ -275,11 +275,13 @@ exports.saveUser = function(req,res){
connection.query(sql, function(err,result){
if(err){
+ connection.release();
res.render("pages/signup", {result:{code:'error', msg:"Unable to get database connection. " + String(err)},header:process.env.MAIN_MENU});
return;
}
if (result.length == 1 || result.length > 1)
{
+ connection.release();
res.render("pages/signup", {result:{code:'error', msg:'User Information already exists.'},header:process.env.MAIN_MENU});
return;
}