removed wrong code
This commit is contained in:
parent
2ec97193aa
commit
d3142c1aab
|
@ -32,10 +32,6 @@ function enforce(r) {
|
||||||
}
|
}
|
||||||
context.userinfo = { username : jwt.preferred_username }
|
context.userinfo = { username : jwt.preferred_username }
|
||||||
return Promise.resolve(context)
|
return Promise.resolve(context)
|
||||||
} else {
|
|
||||||
debug(context, "[PEP] failed " + reply.status + ":" + reply.responseBody)
|
|
||||||
throw new Error("Unauthorized")
|
|
||||||
}
|
|
||||||
}).then(ctx => {
|
}).then(ctx => {
|
||||||
debug(context, "[HOMESERV] creating home for username " + context.userinfo.username)
|
debug(context, "[HOMESERV] creating home for username " + context.userinfo.username)
|
||||||
return context.request.subrequest("/_homeserv", {"body" : "user=" + context.userinfo.username })
|
return context.request.subrequest("/_homeserv", {"body" : "user=" + context.userinfo.username })
|
||||||
|
|
Loading…
Reference in New Issue