From 256c7ed8fefac586590addf4aacae7ffdda0d577 Mon Sep 17 00:00:00 2001
From: Puyodead1
Date: Tue, 17 Jan 2023 11:12:25 -0500
Subject: send email verification
---
assets/schemas.json | 597 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 597 insertions(+)
(limited to 'assets')
diff --git a/assets/schemas.json b/assets/schemas.json
index 1c221cab..3422951e 100644
--- a/assets/schemas.json
+++ b/assets/schemas.json
@@ -32859,5 +32859,602 @@
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
+ },
+ "VerifyEmailSchema": {
+ "type": "object",
+ "properties": {
+ "captcha_key": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "token": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "captcha_key",
+ "token"
+ ],
+ "definitions": {
+ "ChannelPermissionOverwriteType": {
+ "enum": [
+ 0,
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "ChannelModifySchema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ 0,
+ 1,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 2,
+ 255,
+ 3,
+ 33,
+ 34,
+ 35,
+ 4,
+ 5,
+ 6,
+ 64,
+ 7,
+ 8,
+ 9
+ ],
+ "type": "number"
+ },
+ "topic": {
+ "type": "string"
+ },
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "bitrate": {
+ "type": "integer"
+ },
+ "user_limit": {
+ "type": "integer"
+ },
+ "rate_limit_per_user": {
+ "type": "integer"
+ },
+ "position": {
+ "type": "integer"
+ },
+ "permission_overwrites": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/ChannelPermissionOverwriteType"
+ },
+ "allow": {
+ "type": "string"
+ },
+ "deny": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "allow",
+ "deny",
+ "id",
+ "type"
+ ]
+ }
+ },
+ "parent_id": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "nsfw": {
+ "type": "boolean"
+ },
+ "rtc_region": {
+ "type": "string"
+ },
+ "default_auto_archive_duration": {
+ "type": "integer"
+ },
+ "default_reaction_emoji": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "default_thread_rate_limit_per_user": {
+ "type": "integer"
+ },
+ "video_quality_mode": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ActivitySchema": {
+ "type": "object",
+ "properties": {
+ "afk": {
+ "type": "boolean"
+ },
+ "status": {
+ "$ref": "#/definitions/Status"
+ },
+ "activities": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Activity"
+ }
+ },
+ "since": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "status"
+ ]
+ },
+ "Status": {
+ "enum": [
+ "dnd",
+ "idle",
+ "invisible",
+ "offline",
+ "online"
+ ],
+ "type": "string"
+ },
+ "Activity": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/ActivityType"
+ },
+ "url": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "integer"
+ },
+ "timestamps": {
+ "type": "object",
+ "properties": {
+ "start": {
+ "type": "integer"
+ },
+ "end": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "end",
+ "start"
+ ]
+ },
+ "application_id": {
+ "type": "string"
+ },
+ "details": {
+ "type": "string"
+ },
+ "state": {
+ "type": "string"
+ },
+ "emoji": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "animated": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "animated",
+ "name"
+ ]
+ },
+ "party": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "size": {
+ "type": "array",
+ "items": [
+ {
+ "type": "integer"
+ }
+ ],
+ "minItems": 1,
+ "maxItems": 1
+ }
+ },
+ "additionalProperties": false
+ },
+ "assets": {
+ "type": "object",
+ "properties": {
+ "large_image": {
+ "type": "string"
+ },
+ "large_text": {
+ "type": "string"
+ },
+ "small_image": {
+ "type": "string"
+ },
+ "small_text": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "secrets": {
+ "type": "object",
+ "properties": {
+ "join": {
+ "type": "string"
+ },
+ "spectate": {
+ "type": "string"
+ },
+ "match": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "instance": {
+ "type": "boolean"
+ },
+ "flags": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "sync_id": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "object",
+ "properties": {
+ "context_uri": {
+ "type": "string"
+ },
+ "album_id": {
+ "type": "string"
+ },
+ "artist_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "album_id",
+ "artist_ids"
+ ]
+ },
+ "session_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "flags",
+ "name",
+ "session_id",
+ "type"
+ ]
+ },
+ "ActivityType": {
+ "enum": [
+ 0,
+ 1,
+ 2,
+ 4,
+ 5
+ ],
+ "type": "number"
+ },
+ "Record": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "Embed": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "article",
+ "gifv",
+ "image",
+ "link",
+ "rich",
+ "video"
+ ],
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "color": {
+ "type": "integer"
+ },
+ "footer": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "icon_url": {
+ "type": "string"
+ },
+ "proxy_icon_url": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "text"
+ ]
+ },
+ "image": {
+ "$ref": "#/definitions/EmbedImage"
+ },
+ "thumbnail": {
+ "$ref": "#/definitions/EmbedImage"
+ },
+ "video": {
+ "$ref": "#/definitions/EmbedImage"
+ },
+ "provider": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "author": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "icon_url": {
+ "type": "string"
+ },
+ "proxy_icon_url": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ },
+ "inline": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name",
+ "value"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "EmbedImage": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string"
+ },
+ "proxy_url": {
+ "type": "string"
+ },
+ "height": {
+ "type": "integer"
+ },
+ "width": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Partial": {
+ "type": "object",
+ "properties": {
+ "message_notifications": {
+ "type": "integer"
+ },
+ "mute_config": {
+ "$ref": "#/definitions/MuteConfig"
+ },
+ "muted": {
+ "type": "boolean"
+ },
+ "channel_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "MuteConfig": {
+ "type": "object",
+ "properties": {
+ "end_time": {
+ "type": "integer"
+ },
+ "selected_time_window": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "end_time",
+ "selected_time_window"
+ ]
+ },
+ "CustomStatus": {
+ "type": "object",
+ "properties": {
+ "emoji_id": {
+ "type": "string"
+ },
+ "emoji_name": {
+ "type": "string"
+ },
+ "expires_at": {
+ "type": "integer"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "FriendSourceFlags": {
+ "type": "object",
+ "properties": {
+ "all": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "all"
+ ]
+ },
+ "GuildFolder": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "type": "integer"
+ },
+ "guild_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "color",
+ "guild_ids",
+ "id",
+ "name"
+ ]
+ },
+ "Partial": {
+ "type": "object",
+ "properties": {
+ "password": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Partial": {
+ "type": "object",
+ "properties": {
+ "credential": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "ticket": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "$schema": "http://json-schema.org/draft-07/schema#"
}
}
\ No newline at end of file
--
cgit 1.5.1
From 2cddd7a8de444ee3a618ce6a08f6ae101183a167 Mon Sep 17 00:00:00 2001
From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
Date: Thu, 19 Jan 2023 18:49:47 +1100
Subject: Send different app for /verify
---
assets/client_test/verify.html | 58 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
create mode 100644 assets/client_test/verify.html
(limited to 'assets')
diff --git a/assets/client_test/verify.html b/assets/client_test/verify.html
new file mode 100644
index 00000000..08654323
--- /dev/null
+++ b/assets/client_test/verify.html
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+ Fosscord Test Client Developer Portal
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
cgit 1.5.1
From 1f388b17a5c6c0b19b11c9ac06fd223f74e6c2be Mon Sep 17 00:00:00 2001
From: Puyodead1
Date: Thu, 19 Jan 2023 11:17:36 -0500
Subject: change verify.html title
---
assets/client_test/verify.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'assets')
diff --git a/assets/client_test/verify.html b/assets/client_test/verify.html
index 08654323..0de6fc6b 100644
--- a/assets/client_test/verify.html
+++ b/assets/client_test/verify.html
@@ -7,7 +7,7 @@
- Fosscord Test Client Developer Portal
+ Fosscord Test Client
--
cgit 1.5.1
From 0df1ea22cbed1a111925a4d4a1d244ea0837fac7 Mon Sep 17 00:00:00 2001
From: Puyodead1
Date: Thu, 19 Jan 2023 22:33:54 -0500
Subject: Add an email template for email verification
---
assets/email_templates/verify_email.html | 89 ++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
create mode 100644 assets/email_templates/verify_email.html
(limited to 'assets')
diff --git a/assets/email_templates/verify_email.html b/assets/email_templates/verify_email.html
new file mode 100644
index 00000000..55825cfc
--- /dev/null
+++ b/assets/email_templates/verify_email.html
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+ Verify Email Address for {instanceName}
+
+
+
+
+
+
+
Hey {username},
+
+ Thanks for registering for an account on {instanceName}! Before
+ we get started, we just need to confirm that this is you. Click
+ below to verify your email address:
+
+
+
+
+
+
+ Alternatively, you can directly paste this link into
+ your browser:
+
+
{verificationUrl}
+
+
+
+
+
--
cgit 1.5.1
From 292e722f359d7eb5e106f908c07c948d6a10a006 Mon Sep 17 00:00:00 2001
From: Puyodead1
Date: Thu, 19 Jan 2023 22:34:56 -0500
Subject: update verify email template to add target
---
assets/email_templates/verify_email.html | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
(limited to 'assets')
diff --git a/assets/email_templates/verify_email.html b/assets/email_templates/verify_email.html
index 55825cfc..041378d9 100644
--- a/assets/email_templates/verify_email.html
+++ b/assets/email_templates/verify_email.html
@@ -61,7 +61,13 @@
below to verify your email address:
-
+
Verify Email
@@ -72,14 +78,14 @@
display: flex;
justify-content: center;
flex-direction: column;
- text-align: center
+ text-align: center;
"
>
Alternatively, you can directly paste this link into
your browser:
-
{verificationUrl}
--
cgit 1.5.1
From 878fd9d1e87924a95a0db0b1c56232df3dd7ca4c Mon Sep 17 00:00:00 2001
From: Puyodead1
Date: Thu, 19 Jan 2023 22:35:56 -0500
Subject: Update schemas.json
---
assets/schemas.json | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
(limited to 'assets')
diff --git a/assets/schemas.json b/assets/schemas.json
index 3422951e..2bfb525d 100644
--- a/assets/schemas.json
+++ b/assets/schemas.json
@@ -36,6 +36,34 @@
],
"$schema": "http://json-schema.org/draft-07/schema#"
},
+ "SMTPConnection.CustomAuthenticationResponse": {
+ "type": "object",
+ "properties": {
+ "command": {
+ "type": "string"
+ },
+ "response": {
+ "type": "string"
+ },
+ "status": {
+ "type": "integer"
+ },
+ "text": {
+ "type": "string"
+ },
+ "code": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "command",
+ "response",
+ "status",
+ "text"
+ ],
+ "$schema": "http://json-schema.org/draft-07/schema#"
+ },
"TransportMakeRequestResponse": {
"type": "object",
"properties": {
@@ -32875,7 +32903,6 @@
},
"additionalProperties": false,
"required": [
- "captcha_key",
"token"
],
"definitions": {
--
cgit 1.5.1
From f337f2e785d7aebd52ae7bf30c5b67783d5dc23a Mon Sep 17 00:00:00 2001
From: Puyodead1
Date: Fri, 20 Jan 2023 09:18:37 -0500
Subject: Add other email templates
---
assets/email_templates/new_login_location.html | 113 +++++++++++++++++++++
assets/email_templates/password_changed.html | 60 +++++++++++
assets/email_templates/password_reset_request.html | 108 ++++++++++++++++++++
assets/email_templates/phone_removed.html | 64 ++++++++++++
assets/email_templates/verify_email.html | 15 ++-
5 files changed, 359 insertions(+), 1 deletion(-)
create mode 100644 assets/email_templates/new_login_location.html
create mode 100644 assets/email_templates/password_changed.html
create mode 100644 assets/email_templates/password_reset_request.html
create mode 100644 assets/email_templates/phone_removed.html
(limited to 'assets')
diff --git a/assets/email_templates/new_login_location.html b/assets/email_templates/new_login_location.html
new file mode 100644
index 00000000..701196cd
--- /dev/null
+++ b/assets/email_templates/new_login_location.html
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+ Verify {instanceName} Login from New Location
+
+
+
+
+
+
+
+ Hey {username},
+
+
+ It looks like someone tried to log into your {instanceName}
+ account from a new location. If this is you, follow the link
+ below to authorize logging in from this location on your
+ account. If this isn't you, we suggest changing your password as
+ soon as possible.
+
+
+ IP Address: {ip}
+
+ Location: {location}
+
+
+
+
+
+
+ Alternatively, you can directly paste this link into
+ your browser:
+
+
{verifyUrl}
+
+
+
+
+
diff --git a/assets/email_templates/password_changed.html b/assets/email_templates/password_changed.html
new file mode 100644
index 00000000..3f762702
--- /dev/null
+++ b/assets/email_templates/password_changed.html
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+ {instanceName} Password Changed
+
+
+
+
+
+
+
+ Hey {username},
+
+
Your {instanceName} password has been changed.
+
+ If this wasn't done by you, please immediately reset the
+ password to your {instanceName} account.
+
+
+
+
diff --git a/assets/email_templates/password_reset_request.html b/assets/email_templates/password_reset_request.html
new file mode 100644
index 00000000..fc77b47b
--- /dev/null
+++ b/assets/email_templates/password_reset_request.html
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+ Password Reset Request for {instanceName}
+
+
+
+
+
+
+
+ Hey {username},
+
+
+ Your {instanceName} password can be reset by clicking the button
+ below. If you did not request a new password, please ignore this
+ email.
+
+
+
+
+
+
+ Alternatively, you can directly paste this link into
+ your browser:
+
+
{passwordResetUrl}
+
+
+
+
+
diff --git a/assets/email_templates/phone_removed.html b/assets/email_templates/phone_removed.html
new file mode 100644
index 00000000..1eb52fbe
--- /dev/null
+++ b/assets/email_templates/phone_removed.html
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+ Phone Removed From {instanceName} Account
+
+
+
+
+
+
+
+ Hey {username},
+
+
+ Your phone number ********{phoneNumber} was recently removed
+ from this account and added to a different {instanceName}
+ account.
+
+
+ Please note that your phone number can only be linked to one
+ {instanceName} account at a time.
+
+
+
+
diff --git a/assets/email_templates/verify_email.html b/assets/email_templates/verify_email.html
index 041378d9..f0c11e52 100644
--- a/assets/email_templates/verify_email.html
+++ b/assets/email_templates/verify_email.html
@@ -7,6 +7,10 @@
Verify Email Address for {instanceName}
-
-
-
+
+
- Hey {username},
-
-
- It looks like someone tried to log into your {instanceName}
- account from a new location. If this is you, follow the link
- below to authorize logging in from this location on your
- account. If this isn't you, we suggest changing your password as
- soon as possible.
-
-
- IP Address: {ip}
-
- Location: {location}
-
-
-
-
Verify Login
+
+ It looks like someone tried to log into your {instanceName}
+ account from a new location. If this is you, follow the link
+ below to authorize logging in from this location on your
+ account. If this isn't you, we suggest changing your
+ password as soon as possible.
+
+
+ IP Address: {ipAddress}
+
+ Location: {locationCity}, {locationRegion},
+ {locationCountryName}
+
+
+
-
-
-
+
+
+
+ Alternatively, you can directly paste this link into
+ your browser:
+
+
{verifyUrl}
+
diff --git a/assets/email_templates/password_changed.html b/assets/email_templates/password_changed.html
index 3f762702..399108a2 100644
--- a/assets/email_templates/password_changed.html
+++ b/assets/email_templates/password_changed.html
@@ -4,57 +4,62 @@
+
{instanceName} Password Changed
-
-
-
+
+
- Hey {username},
-
-
Your {instanceName} password has been changed.
-
- If this wasn't done by you, please immediately reset the
- password to your {instanceName} account.
-
+
+ Hey {userUsername},
+
+
Your {instanceName} password has been changed.
+
+ If this wasn't done by you, please immediately reset the
+ password to your {instanceName} account.
+
+