-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fixing short discord names #1134
Conversation
Yes, that looks a bit suspicious :) Let's unify username and useraccount.names lengths to 2-32 characters. @kkatusic You need to look at users.service as well:
|
@kristoferlund I checked that inside users username schema and set minimum of 2 character as well. And confirm this that you want on our side set up to 32 max character? Asking this because we have some regex for that:
:) |
@kkatusic Oh yes, forgot. We use eth address as username in some cases, when user logs in to dashboard without first activating their account. So let's not change username maxlength. |
@kristoferlund than this is done? |
Would we also need to account for the twitter length limit? (2-15) |
…ack/praise into fix_discord_shortname
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good, tests passing. I added 2-32 requirements to dashboard as well.
Fix #1132
@kristoferlund check if everything ok. I checked only on two places is required for username length, user schema and user_account schema.
There isn't any test required by name length, on front and bot side.
Only that is somehow suspicion to me is this bot code, cc @Vyvy-vi
https://github.com/givepraise/praise/blob/main/packages/discord-bot/src/utils/dmTargets.ts#L105
I don't know why we have here 24 fixed number.