Selaa lähdekoodia

Delete some dead code.

Lee Morgan 5 vuotta sitten
vanhempi
sitoutus
0587684322
3 muutettua tiedostoa jossa 1 lisäystä ja 19 poistoa
  1. 1 5
      controllers/otherData.js
  2. 0 1
      routes.js
  3. 0 13
      workspace.html

+ 1 - 5
controllers/otherData.js

@@ -43,7 +43,7 @@ module.exports = {
     Redirects to /
     */
     logout: function(req, res){
-        req.session.user = undefined;
+        req.session.user = null;
 
         return res.redirect("/");
     },
@@ -143,9 +143,5 @@ module.exports = {
                 req.session.error = "ERROR: UNABLE TO RETRIEVE DATA FROM SQUARE";
                 return res.redirect("/");
             });
-    },
-
-    logo: function(req, res){
-        return res.sendFile(path.resolve("./views/shared/images/logo.png"));
     }
 }

+ 0 - 1
routes.js

@@ -64,7 +64,6 @@ module.exports = function(app){
     app.get("/squarelogin", otherData.squareRedirect);
     app.get("/cloverauth*", otherData.cloverAuth);
     app.get("/squareauth", otherData.squareAuth);
-    app.get("/logo", otherData.logo);
 
     //Information Pages
     app.get("/privacy", informationPages.privacy);

+ 0 - 13
workspace.html

@@ -1,13 +0,0 @@
-<div id="passwordReset">
-    <header style="width:100%;height:75px;background:rgb(0,27,45);">
-        <img src="https://i.postimg.cc/dQky3vPX/logo.png" alt="Subline Logo" style="height:50px;padding:12px 12px;float:left;">
-
-        <h3 style="color:rgb(255,99,107);font-size:30px;margin:15px 0 0 0;float:left;">THE SUBLINE</h3>
-    </header>
-
-    <h1 style="text-align:center;">Password Resest for ${data.name}</h1>
-
-    <p>Follow the link below to go to reset your password.</p>
-
-    <p>${data.link}</p>
-</div>