summary refs log tree commit diff
path: root/src/api/routes/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/auth')
-rw-r--r--src/api/routes/auth/forgot.ts18
-rw-r--r--src/api/routes/auth/generate-registration-tokens.ts2
-rw-r--r--src/api/routes/auth/location-metadata.ts2
-rw-r--r--src/api/routes/auth/login.ts2
-rw-r--r--src/api/routes/auth/logout.ts2
-rw-r--r--src/api/routes/auth/mfa/totp.ts2
-rw-r--r--src/api/routes/auth/mfa/webauthn.ts2
-rw-r--r--src/api/routes/auth/register.ts2
-rw-r--r--src/api/routes/auth/reset.ts18
-rw-r--r--src/api/routes/auth/verify/index.ts2
-rw-r--r--src/api/routes/auth/verify/resend.ts2
-rw-r--r--src/api/routes/auth/verify/view-backup-codes-challenge.ts2
12 files changed, 46 insertions, 10 deletions
diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts
index 04df97d7..31ebb16d 100644
--- a/src/api/routes/auth/forgot.ts
+++ b/src/api/routes/auth/forgot.ts
@@ -1,3 +1,21 @@
+/*
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
+	Copyright (C) 2023 Fosscord and Fosscord Contributors
+	
+	This program is free software: you can redistribute it and/or modify
+	it under the terms of the GNU Affero General Public License as published
+	by the Free Software Foundation, either version 3 of the License, or
+	(at your option) any later version.
+	
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU Affero General Public License for more details.
+	
+	You should have received a copy of the GNU Affero General Public License
+	along with this program.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 import { getIpAdress, route, verifyCaptcha } from "@fosscord/api";
 import {
 	Config,
diff --git a/src/api/routes/auth/generate-registration-tokens.ts b/src/api/routes/auth/generate-registration-tokens.ts
index c79d2a59..4458cfc8 100644
--- a/src/api/routes/auth/generate-registration-tokens.ts
+++ b/src/api/routes/auth/generate-registration-tokens.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/location-metadata.ts b/src/api/routes/auth/location-metadata.ts
index 1ee8cd62..f6da3bdf 100644
--- a/src/api/routes/auth/location-metadata.ts
+++ b/src/api/routes/auth/location-metadata.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/login.ts b/src/api/routes/auth/login.ts
index 9c6f2335..dab87e4e 100644
--- a/src/api/routes/auth/login.ts
+++ b/src/api/routes/auth/login.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/logout.ts b/src/api/routes/auth/logout.ts
index 43ba72a2..adb995e5 100644
--- a/src/api/routes/auth/logout.ts
+++ b/src/api/routes/auth/logout.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/mfa/totp.ts b/src/api/routes/auth/mfa/totp.ts
index bbbd1236..3c2025aa 100644
--- a/src/api/routes/auth/mfa/totp.ts
+++ b/src/api/routes/auth/mfa/totp.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/mfa/webauthn.ts b/src/api/routes/auth/mfa/webauthn.ts
index a9fa78b2..63b12ca8 100644
--- a/src/api/routes/auth/mfa/webauthn.ts
+++ b/src/api/routes/auth/mfa/webauthn.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts
index 0bf8efae..51efbc99 100644
--- a/src/api/routes/auth/register.ts
+++ b/src/api/routes/auth/register.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/reset.ts b/src/api/routes/auth/reset.ts
index 9ab25dca..79ef296c 100644
--- a/src/api/routes/auth/reset.ts
+++ b/src/api/routes/auth/reset.ts
@@ -1,3 +1,21 @@
+/*
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
+	Copyright (C) 2023 Fosscord and Fosscord Contributors
+	
+	This program is free software: you can redistribute it and/or modify
+	it under the terms of the GNU Affero General Public License as published
+	by the Free Software Foundation, either version 3 of the License, or
+	(at your option) any later version.
+	
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU Affero General Public License for more details.
+	
+	You should have received a copy of the GNU Affero General Public License
+	along with this program.  If not, see <https://www.gnu.org/licenses/>.
+*/
+
 import { route } from "@fosscord/api";
 import {
 	checkToken,
diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts
index ac12bbb7..cd95d59d 100644
--- a/src/api/routes/auth/verify/index.ts
+++ b/src/api/routes/auth/verify/index.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/verify/resend.ts b/src/api/routes/auth/verify/resend.ts
index 918af9a1..10436163 100644
--- a/src/api/routes/auth/verify/resend.ts
+++ b/src/api/routes/auth/verify/resend.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify
diff --git a/src/api/routes/auth/verify/view-backup-codes-challenge.ts b/src/api/routes/auth/verify/view-backup-codes-challenge.ts
index 3e1a6a92..31a9d166 100644
--- a/src/api/routes/auth/verify/view-backup-codes-challenge.ts
+++ b/src/api/routes/auth/verify/view-backup-codes-challenge.ts
@@ -1,5 +1,5 @@
 /*
-	Fosscord: A FOSS re-implementation and extension of the Discord.com backend.
+	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
 	Copyright (C) 2023 Fosscord and Fosscord Contributors
 	
 	This program is free software: you can redistribute it and/or modify