Skip to content

Feature Request: Add a ban message #4666

Open
@rlmoser99

Description

@rlmoser99

Checks

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this issue follows the Feature Request: brief description of feature request format, e.g. Feature Request: Add a dark mode to the website
  • Would you like to work on this issue?

Description of the Feature Request

When an admin bans a user, the user should receive an email to let them know their account was banned, possible reasons, and an invitation to contact us.

Acceptance criteria

  1. Sign in as a normal user with an email address that you have access to
  2. Go to the recipes project
  3. Flag one of the submissions
  4. Sign in to /admin_v2 (user: admin@odin.com, password: password123)
  5. Visit the Flags page
  6. Select the most recent flag
  7. Click "Resolve flag", choose "Ban User" and then click "Submit"
  8. A notice should appear "Project submission owner has been banned" and a "Banned" badge should be under the flag heading
  9. The flag should be in the resolved list back on the Flag index page
  10. The email address used to sign in should receive an email with the ban template

Email Body:

Your account has been banned because you have broken one of our rules. For example:

  • One of your project submissions contained NSFW or other highly offensive images
  • One of your project submissions contained bigotry, such as racism, homophobia, hate speech
  • One of your project submissions were plagiarized

If you are unsure of the rules that were broken, you may reach out to us at theodinprojectcontact@gmail.com

Additional Comments

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

📋 Backlog / Ideas

Status

Ready to work on

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions