This commit is contained in:
Tyler Renelle 2012-11-15 11:33:38 -05:00
parent c3f6671004
commit f1912635b0
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,8 @@
"async": "*",
"underscore": "*",
"clone": "*",
"coffee-script": "*"
"coffee-script": "*",
"guid": "*"
},
"private": true,
"subdomain": "habitrpg",

View file

@ -20,7 +20,7 @@ get '/:uid?', (page, model, {uid}, next) ->
# Legacy - won't be allowing PURL auth in the future. Remove once password auth in place
# Creates stink here too because :uid accounts for every single-param path (terms, privacy, etc)
if uid
if require('../../node_modules/derby-auth/node_modules/guid').isGuid(uid)
if require('guid').isGuid(uid)
return page.redirect('/users/'+uid)
else
return next()