tangled
alpha
login
or
join now
bad-example.com
/
spacedust-utils
6
fork
atom
demos for spacedust
6
fork
atom
overview
issues
pulls
pipelines
fix account restriction
bad-example.com
8 months ago
eb553fda
64b82742
+6
-5
1 changed file
expand all
collapse all
unified
split
server
index.js
+6
-5
server/index.js
···
188
188
189
189
// not yet public!!
190
190
if (!did || did !== adminDid) {
191
191
-
res.setHeader('Content-Type', 'application/json');
192
192
-
res.writeHead(403);
193
193
-
clearAccountCookie(res).end(JSON.stringify({
194
194
-
reason: 'the spacedust notifications demo isn\'t public yet!',
195
195
-
}));
191
191
+
clearAccountCookie(res)
192
192
+
.setHeader('Content-Type', 'application/json')
193
193
+
.writeHead(403)
194
194
+
.end(JSON.stringify({
195
195
+
reason: 'the spacedust notifications demo isn\'t public yet!',
196
196
+
}));
196
197
throw new Error('unauthorized');
197
198
}
198
199