updated default email texts for consistency and set a smaller default verification token duration
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
- Fixed logs bulk selection export error.
|
- Fixed logs bulk selection export error.
|
||||||
|
|
||||||
- Other Minor UI improvements (optimized logs and records list rendering, word breaking in labels, text contrast improvements, registered missing `oidc2` and `oidc3` option fields, etc.).
|
- Other minor improvements (optimized logs and records list rendering, word breaking in labels, text contrast improvements, registered missing `oidc2` and `oidc3` option fields, updated default email template texts for consistency, etc.).
|
||||||
|
|
||||||
|
|
||||||
## v0.38.2
|
## v0.38.2
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ func (m *Collection) setDefaultAuthOptions() {
|
|||||||
},
|
},
|
||||||
VerificationToken: TokenConfig{
|
VerificationToken: TokenConfig{
|
||||||
Secret: security.RandomString(50),
|
Secret: security.RandomString(50),
|
||||||
Duration: 259200, // 3days
|
Duration: 86400, // 1day
|
||||||
},
|
},
|
||||||
FileToken: TokenConfig{
|
FileToken: TokenConfig{
|
||||||
Secret: security.RandomString(50),
|
Secret: security.RandomString(50),
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ var defaultVerificationTemplate = EmailTemplate{
|
|||||||
<p>
|
<p>
|
||||||
<a class="btn" href="` + EmailPlaceholderAppURL + "/_/#/auth/confirm-verification/" + EmailPlaceholderToken + `" target="_blank" rel="noopener">Verify</a>
|
<a class="btn" href="` + EmailPlaceholderAppURL + "/_/#/auth/confirm-verification/" + EmailPlaceholderToken + `" target="_blank" rel="noopener">Verify</a>
|
||||||
</p>
|
</p>
|
||||||
|
<p><i>If you didn't recently registered, please ignore this email.</i></p>
|
||||||
<p>
|
<p>
|
||||||
Thanks,<br/>
|
Thanks,<br/>
|
||||||
` + EmailPlaceholderAppName + ` team
|
` + EmailPlaceholderAppName + ` team
|
||||||
@@ -31,7 +32,7 @@ var defaultResetPasswordTemplate = EmailTemplate{
|
|||||||
<p>
|
<p>
|
||||||
<a class="btn" href="` + EmailPlaceholderAppURL + "/_/#/auth/confirm-password-reset/" + EmailPlaceholderToken + `" target="_blank" rel="noopener">Reset password</a>
|
<a class="btn" href="` + EmailPlaceholderAppURL + "/_/#/auth/confirm-password-reset/" + EmailPlaceholderToken + `" target="_blank" rel="noopener">Reset password</a>
|
||||||
</p>
|
</p>
|
||||||
<p><i>If you didn't ask to reset your password, you can ignore this email.</i></p>
|
<p><i>If you didn't ask to reset your password, please ignore this email.</i></p>
|
||||||
<p>
|
<p>
|
||||||
Thanks,<br/>
|
Thanks,<br/>
|
||||||
` + EmailPlaceholderAppName + ` team
|
` + EmailPlaceholderAppName + ` team
|
||||||
@@ -45,7 +46,7 @@ var defaultConfirmEmailChangeTemplate = EmailTemplate{
|
|||||||
<p>
|
<p>
|
||||||
<a class="btn" href="` + EmailPlaceholderAppURL + "/_/#/auth/confirm-email-change/" + EmailPlaceholderToken + `" target="_blank" rel="noopener">Confirm new email</a>
|
<a class="btn" href="` + EmailPlaceholderAppURL + "/_/#/auth/confirm-email-change/" + EmailPlaceholderToken + `" target="_blank" rel="noopener">Confirm new email</a>
|
||||||
</p>
|
</p>
|
||||||
<p><i>If you didn't ask to change your email address, you can ignore this email.</i></p>
|
<p><i>If you didn't ask to change your email address, please ignore this email.</i></p>
|
||||||
<p>
|
<p>
|
||||||
Thanks,<br/>
|
Thanks,<br/>
|
||||||
` + EmailPlaceholderAppName + ` team
|
` + EmailPlaceholderAppName + ` team
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ migrate((app) => {
|
|||||||
"duration": 604800
|
"duration": 604800
|
||||||
},
|
},
|
||||||
"confirmEmailChangeTemplate": {
|
"confirmEmailChangeTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Confirm your {APP_NAME} new email address"
|
"subject": "Confirm your {APP_NAME} new email address"
|
||||||
},
|
},
|
||||||
"createRule": null,
|
"createRule": null,
|
||||||
@@ -170,14 +170,14 @@ migrate((app) => {
|
|||||||
"duration": 1800
|
"duration": 1800
|
||||||
},
|
},
|
||||||
"resetPasswordTemplate": {
|
"resetPasswordTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Reset your {APP_NAME} password"
|
"subject": "Reset your {APP_NAME} password"
|
||||||
},
|
},
|
||||||
"system": true,
|
"system": true,
|
||||||
"type": "auth",
|
"type": "auth",
|
||||||
"updateRule": null,
|
"updateRule": null,
|
||||||
"verificationTemplate": {
|
"verificationTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p><i>If you didn't recently registered, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Verify your {APP_NAME} email"
|
"subject": "Verify your {APP_NAME} email"
|
||||||
},
|
},
|
||||||
"verificationToken": {
|
"verificationToken": {
|
||||||
@@ -221,7 +221,7 @@ func init() {
|
|||||||
"duration": 604800
|
"duration": 604800
|
||||||
},
|
},
|
||||||
"confirmEmailChangeTemplate": {
|
"confirmEmailChangeTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Confirm your {APP_NAME} new email address"
|
"subject": "Confirm your {APP_NAME} new email address"
|
||||||
},
|
},
|
||||||
"createRule": null,
|
"createRule": null,
|
||||||
@@ -352,14 +352,14 @@ func init() {
|
|||||||
"duration": 1800
|
"duration": 1800
|
||||||
},
|
},
|
||||||
"resetPasswordTemplate": {
|
"resetPasswordTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Reset your {APP_NAME} password"
|
"subject": "Reset your {APP_NAME} password"
|
||||||
},
|
},
|
||||||
"system": true,
|
"system": true,
|
||||||
"type": "auth",
|
"type": "auth",
|
||||||
"updateRule": null,
|
"updateRule": null,
|
||||||
"verificationTemplate": {
|
"verificationTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p><i>If you didn't recently registered, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Verify your {APP_NAME} email"
|
"subject": "Verify your {APP_NAME} email"
|
||||||
},
|
},
|
||||||
"verificationToken": {
|
"verificationToken": {
|
||||||
@@ -492,7 +492,7 @@ migrate((app) => {
|
|||||||
"duration": 604800
|
"duration": 604800
|
||||||
},
|
},
|
||||||
"confirmEmailChangeTemplate": {
|
"confirmEmailChangeTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Confirm your {APP_NAME} new email address"
|
"subject": "Confirm your {APP_NAME} new email address"
|
||||||
},
|
},
|
||||||
"createRule": null,
|
"createRule": null,
|
||||||
@@ -623,14 +623,14 @@ migrate((app) => {
|
|||||||
"duration": 1800
|
"duration": 1800
|
||||||
},
|
},
|
||||||
"resetPasswordTemplate": {
|
"resetPasswordTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Reset your {APP_NAME} password"
|
"subject": "Reset your {APP_NAME} password"
|
||||||
},
|
},
|
||||||
"system": false,
|
"system": false,
|
||||||
"type": "auth",
|
"type": "auth",
|
||||||
"updateRule": null,
|
"updateRule": null,
|
||||||
"verificationTemplate": {
|
"verificationTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p><i>If you didn't recently registered, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Verify your {APP_NAME} email"
|
"subject": "Verify your {APP_NAME} email"
|
||||||
},
|
},
|
||||||
"verificationToken": {
|
"verificationToken": {
|
||||||
@@ -677,7 +677,7 @@ func init() {
|
|||||||
"duration": 604800
|
"duration": 604800
|
||||||
},
|
},
|
||||||
"confirmEmailChangeTemplate": {
|
"confirmEmailChangeTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to confirm your new email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Confirm new email</a>\n</p>\n<p><i>If you didn't ask to change your email address, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Confirm your {APP_NAME} new email address"
|
"subject": "Confirm your {APP_NAME} new email address"
|
||||||
},
|
},
|
||||||
"createRule": null,
|
"createRule": null,
|
||||||
@@ -808,14 +808,14 @@ func init() {
|
|||||||
"duration": 1800
|
"duration": 1800
|
||||||
},
|
},
|
||||||
"resetPasswordTemplate": {
|
"resetPasswordTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, you can ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Click on the button below to reset your password.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Reset password</a>\n</p>\n<p><i>If you didn't ask to reset your password, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Reset your {APP_NAME} password"
|
"subject": "Reset your {APP_NAME} password"
|
||||||
},
|
},
|
||||||
"system": false,
|
"system": false,
|
||||||
"type": "auth",
|
"type": "auth",
|
||||||
"updateRule": null,
|
"updateRule": null,
|
||||||
"verificationTemplate": {
|
"verificationTemplate": {
|
||||||
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
"body": "<p>Hello,</p>\n<p>Thank you for joining us at {APP_NAME}.</p>\n<p>Click on the button below to verify your email address.</p>\n<p>\n <a class=\"btn\" href=\"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}\" target=\"_blank\" rel=\"noopener\">Verify</a>\n</p>\n<p><i>If you didn't recently registered, please ignore this email.</i></p>\n<p>\n Thanks,<br/>\n {APP_NAME} team\n</p>",
|
||||||
"subject": "Verify your {APP_NAME} email"
|
"subject": "Verify your {APP_NAME} email"
|
||||||
},
|
},
|
||||||
"verificationToken": {
|
"verificationToken": {
|
||||||
|
|||||||
Reference in New Issue
Block a user