Disable user registration and contact forms

This commit is contained in:
Oliver Davies 2024-04-18 19:37:16 +01:00
parent ed34431abd
commit f0caa8fd71
4 changed files with 12 additions and 97 deletions

View file

@ -4,4 +4,4 @@ default_form: feedback
flood:
limit: 5
interval: 3600
user_default_enabled: true
user_default_enabled: false

View file

@ -12,3 +12,4 @@ page:
admin_compact_mode: false
weight_select_max: 100
default_langcode: en
mail_notification: ''

View file

@ -3,114 +3,28 @@ _core:
langcode: en
cancel_confirm:
subject: 'Account cancellation request for [user:display-name] at [site:name]'
body: |-
[user:display-name]
A request to cancel your account has been made at [site:name].
You may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:
[user:cancel-url]
NOTE: The cancellation of your account is not reversible.
This link expires in one day and nothing will happen if it is not used.
-- [site:name] team
body: "[user:display-name]\r\n\r\nA request to cancel your account has been made at [site:name].\r\n\r\nYou may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:\r\n\r\n[user:cancel-url]\r\n\r\nNOTE: The cancellation of your account is not reversible.\r\n\r\nThis link expires in one day and nothing will happen if it is not used.\r\n\r\n-- [site:name] team"
password_reset:
subject: 'Replacement login information for [user:display-name] at [site:name]'
body: |-
[user:display-name],
A request to reset the password for your account has been made at [site:name].
You may now log in by clicking this link or copying and pasting it into your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.
-- [site:name] team
body: "[user:display-name],\r\n\r\nA request to reset the password for your account has been made at [site:name].\r\n\r\nYou may now log in by clicking this link or copying and pasting it into your browser:\r\n\r\n[user:one-time-login-url]\r\n\r\nThis link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.\r\n\r\n-- [site:name] team"
register_admin_created:
subject: 'An administrator created an account for you at [site:name]'
body: |-
[user:display-name],
A site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it into your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password.
After setting your password, you will be able to log in at [site:login-url] in the future using:
username: [user:name]
password: Your password
-- [site:name] team
body: "[user:display-name],\r\n\r\nA site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it into your browser:\r\n\r\n[user:one-time-login-url]\r\n\r\nThis link can only be used once to log in and will lead you to a page where you can set your password.\r\n\r\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\r\n\r\nusername: [user:name]\r\npassword: Your password\r\n\r\n-- [site:name] team"
register_no_approval_required:
subject: 'Account details for [user:display-name] at [site:name]'
body: |-
[user:display-name],
Thank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it into your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password.
After setting your password, you will be able to log in at [site:login-url] in the future using:
username: [user:name]
password: Your password
-- [site:name] team
body: "[user:display-name],\r\n\r\nThank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it into your browser:\r\n\r\n[user:one-time-login-url]\r\n\r\nThis link can only be used once to log in and will lead you to a page where you can set your password.\r\n\r\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\r\n\r\nusername: [user:name]\r\npassword: Your password\r\n\r\n-- [site:name] team"
register_pending_approval:
subject: 'Account details for [user:display-name] at [site:name] (pending admin approval)'
body: |-
[user:display-name],
Thank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.
-- [site:name] team
body: "[user:display-name],\r\n\r\nThank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.\r\n\r\n-- [site:name] team"
register_pending_approval_admin:
subject: 'Account details for [user:display-name] at [site:name] (pending admin approval)'
body: |-
[user:display-name] has applied for an account.
[user:edit-url]
body: "[user:display-name] has applied for an account.\r\n\r\n[user:edit-url]"
status_activated:
subject: 'Account details for [user:display-name] at [site:name] (approved)'
body: |-
[user:display-name],
Your account at [site:name] has been activated.
You may now log in by clicking this link or copying and pasting it into your browser:
[user:one-time-login-url]
This link can only be used once to log in and will lead you to a page where you can set your password.
After setting your password, you will be able to log in at [site:login-url] in the future using:
username: [user:account-name]
password: Your password
-- [site:name] team
body: "[user:display-name],\r\n\r\nYour account at [site:name] has been activated.\r\n\r\nYou may now log in by clicking this link or copying and pasting it into your browser:\r\n\r\n[user:one-time-login-url]\r\n\r\nThis link can only be used once to log in and will lead you to a page where you can set your password.\r\n\r\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\r\n\r\nusername: [user:account-name]\r\npassword: Your password\r\n\r\n-- [site:name] team"
status_blocked:
subject: 'Account details for [user:display-name] at [site:name] (blocked)'
body: |-
[user:display-name],
Your account on [site:name] has been blocked.
-- [site:name] team
body: "[user:display-name],\r\n\r\nYour account on [site:name] has been blocked.\r\n\r\n-- [site:name] team"
status_canceled:
subject: 'Account details for [user:display-name] at [site:name] (canceled)'
body: |-
[user:display-name],
Your account on [site:name] has been canceled.
-- [site:name] team
body: "[user:display-name],\r\n\r\nYour account on [site:name] has been canceled.\r\n\r\n-- [site:name] team"

View file

@ -12,7 +12,7 @@ notify:
register_admin_created: true
register_no_approval_required: true
register_pending_approval: true
register: visitors_admin_approval
register: admin_only
cancel_method: user_cancel_block
password_reset_timeout: 86400
password_strength: true