mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-18 12:02:54 +00:00
*sigh*
This commit is contained in:
parent
c3f6671004
commit
f1912635b0
2 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,8 @@
|
|||
"async": "*",
|
||||
"underscore": "*",
|
||||
"clone": "*",
|
||||
"coffee-script": "*"
|
||||
"coffee-script": "*",
|
||||
"guid": "*"
|
||||
},
|
||||
"private": true,
|
||||
"subdomain": "habitrpg",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue