Skip to content

Commit

Permalink
don't forget to say ha-ha
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Nov 17, 2020
1 parent eab9fb2 commit 3733ea9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -14,7 +14,7 @@ async function own(name, scope) {
return execa(path.join(__dirname, "bin", "own"), [name, scope])
}

async function authenticate(request, response, name) {
async function authenticate(request, response, name, scope) {
let snootid = await getSnoot(name)

if (!snootid) {
Expand All @@ -35,7 +35,7 @@ async function authenticate(request, response, name) {
<p>then run this in your terminal!</p>
<pre><code>
ssh ${name}@auth.snoot.club -p 2424
ssh ${name}@${scope}.snoot.club -p 2424
</code></pre>
`
}
Expand Down Expand Up @@ -86,7 +86,7 @@ async function listen(request, response, name, scope) {
}

async function notfound(request, response) {
return send(response, 404, "go to https://auth.snoot.club/your_snoot_name")
return send(response, 404, "sorry")
}

module.exports = (request, response) => {
Expand All @@ -99,7 +99,7 @@ module.exports = (request, response) => {
}

if (parts.length == 2 && parts[0] == "listen") {
let [, name, scope] = parts
let [, name] = parts
return listen(request, response, name, scope)
}

Expand Down

0 comments on commit 3733ea9

Please sign in to comment.