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

Feat: Prevent users from entering wrong type of working email #50

Open
LucasPlacentino opened this issue Jun 1, 2024 · 0 comments
Open
Labels

Comments

@LucasPlacentino
Copy link
Collaborator

Basically, ULB uses aliases for the name.surname@ email address, the actual real address is tver0001@ (t for Theodore and ver for Verhaegen) where the first letter is the first letter of the user's name, the next three letters are the first three letters of their surname and the four digits is the number of occurrences of these four-letter combination inside ULB's email system.
Users are able to verify using this email address which results in their name on the server being Tver0001 (or maybe Tver000 since #43 got merged and removes the last character if it's a digit, see #42 ).

Example showing the database entry:
image

Solution: The filter on user email address input that checks if it has the correct domain should also check if this address format is used and reject it. Could use regex to check the combination of 4letters followed by 4digits (something like "^[a-zA-Z]{4}\d{4}@ulb.be"g see on regex101.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant