Skip to content

Commit

Permalink
require email & password
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 1, 2023
1 parent 00eea9f commit 79eb19f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/pds/src/api/com/atproto/server/createAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export default function (server: Server, ctx: AppContext) {
},
handler: async ({ input, req }) => {
const { email, password, inviteCode } = input.body
if (input.body.plcOp) {
if (!email) {
throw new InvalidRequestError('Missing input: "email"')
} else if (!password) {
throw new InvalidRequestError('Missing input: "password"')
} else if (input.body.plcOp) {
throw new InvalidRequestError('Unsupported input: "plcOp"')
}

Expand Down

0 comments on commit 79eb19f

Please sign in to comment.