Skip to content

Commit

Permalink
Fixes issue with syntactically bad code in PR openhab#406 (openhab#420)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Cunningham <[email protected]>
  • Loading branch information
digitaldan authored Jan 28, 2023
1 parent 27a8772 commit ae8e3ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ Routes.prototype.setupGeneralRoutes = function (app) {
Routes.prototype.setupLoginLogoutRoutes = function (app) {
app.get('/logout', function (req, res, next) {
req.logout(function(err) {
if (err) { return next(err); }
res.redirect('/');
if (err) { return next(err); }
res.redirect('/');
});
});

app.get('/login', function (req, res) {
Expand Down

0 comments on commit ae8e3ac

Please sign in to comment.