Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions route/mnp.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ router.post('/matches/:match_id/players/add',function(req,res) {
// /mymatch takes the user directly to their most recent match.

router.get('/mymatch', function(req,res) {
if (!req.user.key) { return res.redirect('/login?redirect_url=/mymatch'); }
var ukey = req.user.key || 'ANON';
var match = matches.uget(ukey);

Expand All @@ -539,6 +540,7 @@ router.get('/mymatch', function(req,res) {
// /myteam takes the user directly to their most recent team from stats.

router.get('/myteam', function(req,res) {
if (!req.user.key) { return res.redirect('/login?redirect_url=/myteam'); }
const season = seasons.get();
var ukey = req.user.key || 'ANON';
var myTeam = '';
Expand Down