mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
changing admin API calls to return 404 if unauthenticated, and redirect user to login for regular URL. closes #1885
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
}
|
||||
|
||||
app.get(strategy.callbackURL, passport.authenticate(strategy.name, {
|
||||
successRedirect: nconf.get('relative_path') + '/',
|
||||
successReturnToOrRedirect: nconf.get('relative_path') + '/',
|
||||
failureRedirect: nconf.get('relative_path') + '/login'
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user