@atproto/pds 0.3.0-beta.0 → 0.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/auth.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.3.0-beta.0",
3
+ "version": "0.3.0-beta.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,15 +40,15 @@
40
40
  "uint8arrays": "3.0.0",
41
41
  "zod": "^3.21.4",
42
42
  "@atproto/api": "^0.6.12",
43
- "@atproto/crypto": "^0.2.2",
44
- "@atproto/syntax": "^0.1.0",
45
43
  "@atproto/aws": "^0.1.0",
44
+ "@atproto/crypto": "^0.2.2",
46
45
  "@atproto/common": "^0.3.0",
47
- "@atproto/identity": "^0.2.0",
48
- "@atproto/xrpc": "^0.3.0",
49
46
  "@atproto/lexicon": "^0.2.0",
50
- "@atproto/repo": "^0.3.0",
51
- "@atproto/xrpc-server": "^0.3.0"
47
+ "@atproto/xrpc": "^0.3.0",
48
+ "@atproto/identity": "^0.2.0",
49
+ "@atproto/xrpc-server": "^0.3.0",
50
+ "@atproto/syntax": "^0.1.0",
51
+ "@atproto/repo": "^0.3.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@did-plc/server": "^0.0.1",
package/src/auth.ts CHANGED
@@ -120,14 +120,14 @@ export class ServerAuth {
120
120
  return { status: Missing, admin: false, moderator: false, triage: false }
121
121
  }
122
122
  const { username, password } = parsed
123
- if (username === 'admin' && password === this._triagePass) {
124
- return { status: Valid, admin: false, moderator: false, triage: true }
123
+ if (username === 'admin' && password === this._adminPass) {
124
+ return { status: Valid, admin: true, moderator: true, triage: true }
125
125
  }
126
126
  if (username === 'admin' && password === this._moderatorPass) {
127
127
  return { status: Valid, admin: false, moderator: true, triage: true }
128
128
  }
129
- if (username === 'admin' && password === this._adminPass) {
130
- return { status: Valid, admin: true, moderator: true, triage: true }
129
+ if (username === 'admin' && password === this._triagePass) {
130
+ return { status: Valid, admin: false, moderator: false, triage: true }
131
131
  }
132
132
  return { status: Invalid, admin: false, moderator: false, triage: false }
133
133
  }