Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banned Reason Message On Login #619

Closed
wants to merge 1 commit into from

Conversation

halimkun
Copy link

I saw that in the user entity there is a function to ban the user ban() with the parameter for the reason for being banned, and after I checked in the database the parameter will be saved in the status_message column.

The strange thing for me is that users don't know why they were banned, but we have the data. I tried to update the code a little to be able to tell you the reason for being banned.

The changes I made will check whether status_message is null and is an empty string, and if it meets the requirements, it will display a message according to what is stored in the database.

@halimkun halimkun closed this by deleting the head repository Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant