diff options
author | Puyodead1 <puyodead@proton.me> | 2023-01-19 09:58:49 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 21:35:50 -0500 |
commit | cc6bf066b143841d1745e972385c8c77fb7a12e4 (patch) | |
tree | 7e5b67fdc9a9fa25060cccf4e4956d1068ab9277 /src | |
parent | Send different app for /verify (diff) | |
download | server-cc6bf066b143841d1745e972385c8c77fb7a12e4.tar.xz |
add missing copyright headers
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/auth/verify/index.ts | 18 | ||||
-rw-r--r-- | src/util/config/types/SMTPConfiguration.ts | 18 | ||||
-rw-r--r-- | src/util/schemas/VerifyEmailSchema.ts | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts index eae938eb..4c076d09 100644 --- a/src/api/routes/auth/verify/index.ts +++ b/src/api/routes/auth/verify/index.ts @@ -1,3 +1,21 @@ +/* + Fosscord: 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, verifyCaptcha } from "@fosscord/api"; import { Config, FieldErrors, verifyToken } from "@fosscord/util"; import { Request, Response, Router } from "express"; diff --git a/src/util/config/types/SMTPConfiguration.ts b/src/util/config/types/SMTPConfiguration.ts index e833376a..11eb9e14 100644 --- a/src/util/config/types/SMTPConfiguration.ts +++ b/src/util/config/types/SMTPConfiguration.ts @@ -1,3 +1,21 @@ +/* + Fosscord: 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/>. +*/ + export class SMTPConfiguration { host: string | null = null; port: number | null = null; diff --git a/src/util/schemas/VerifyEmailSchema.ts b/src/util/schemas/VerifyEmailSchema.ts index ad170e84..fa6a4c0d 100644 --- a/src/util/schemas/VerifyEmailSchema.ts +++ b/src/util/schemas/VerifyEmailSchema.ts @@ -1,3 +1,21 @@ +/* + Fosscord: 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/>. +*/ + export interface VerifyEmailSchema { captcha_key: string | null; token: string; |