From 23ac445713167b9d0776d8079759e153b2444d93 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Mon, 28 Apr 2025 23:16:37 +0200 Subject: [PATCH] fix: let servers disable signups --- API/client-server/v1/register.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/API/client-server/v1/register.md b/API/client-server/v1/register.md index 56e1143..d50c5ea 100644 --- a/API/client-server/v1/register.md +++ b/API/client-server/v1/register.md @@ -32,7 +32,7 @@ Registers the user, and issues an access token for future requests. |-|-| |200|Registration successful| |400|The post request included poorly formated data| -|403|Gorb ID not available, email already in use, or password doesn't meet the minimum security requirements| +|401|Signups are disabled, gorb ID not available, email already in use, or password doesn't meet the minimum security requirements| --- @@ -54,10 +54,11 @@ Registers the user, and issues an access token for future requests. --- -### 403 +### 401 |Name|Type|Description| |-|-|-| +|signups_enabled|bool|Does the server have signups enabled?| |gorb_id_valid|bool|Is the given gorb ID even valid?| |gorb_id_available|bool|Is the given gorb ID available?| |email_valid|bool|Is the given email valid?| @@ -68,7 +69,8 @@ Registers the user, and issues an access token for future requests. |password_numbers|bool|If enforced by the server, is there enough numbers in the password?| ```json -{ +{ + "signups_enabled": true, "gorb_id_valid": true, "gorb_id_available": true, "email_valid": true,