-
Notifications
You must be signed in to change notification settings - Fork 54
Email Enforcement #1088
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
base: main
Are you sure you want to change the base?
Email Enforcement #1088
Conversation
… and email is unverified
Qodana for .NET1080 new problems were found
☁️ View the detailed Qodana report Detected 72 dependenciesThird-party software listThis page lists the third-party software dependencies used in ProjectLighthouse Contact Qodana teamContact us at [email protected]
|
96d8352
to
f77e5ee
Compare
2fbf237
to
3fb1441
Compare
ProjectLighthouse.Servers.GameServer/Controllers/CommentController.cs
Outdated
Show resolved
Hide resolved
ProjectLighthouse.Servers.GameServer/Controllers/Resources/PhotosController.cs
Outdated
Show resolved
Hide resolved
ProjectLighthouse.Servers.GameServer/Controllers/Resources/ResourcesController.cs
Outdated
Show resolved
Hide resolved
ProjectLighthouse/Configuration/EmailEnforcementConfiguration.cs
Outdated
Show resolved
Hide resolved
ProjectLighthouse.Servers.GameServer/Controllers/Resources/ResourcesController.cs
Outdated
Show resolved
Hide resolved
ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs
Outdated
Show resolved
Hide resolved
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.
I have no more comments - good luck on the Slendy portion of this PR review.
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.
First review pass. The most glaring issues are the config being defined in 2 places and the email blacklist not being case insensitive.
ProjectLighthouse.Servers.GameServer/Controllers/Matching/EnterLevelController.cs
Show resolved
Hide resolved
ProjectLighthouse.Servers.GameServer/Middlewares/EmailEnforcementMiddleware.cs
Show resolved
Hide resolved
Is there a particular part of the PR review that we are stuck on that I can try to do some outreach to get us help with? |
This PR implements server wide enforcement for email addresses by making GameServer features inaccessible when certain conditions regarding a user's email address are not met.
These conditions are:
This PR also implements a check to determine if an inputted email's domain is within a user specified blacklist of email domains. This can be useful for preventing users from signing up with temporary email services.
All features implemented are toggleable. Meaning none of these features are required per instance and users can customize many things about them. This includes the list of blacklisted domains; the list of blocked endpoints when a user does not have a verified email; and whether they want to enable or disable the email blacklist or email enforcement as a whole.