Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pcweb/pages/pricing/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def submit(self, form_data: dict[str, Any]):
email = form_data.get("email", "").lower()
if "@" in email:
domain = email.split("@")[1]
if domain in banned_domains:
if domain in banned_domains or domain.endswith('.edu'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using a dedicated error message for .edu emails (e.g., 'Educational institution emails are not allowed') instead of reusing 'Personal emails not allowed!'

self.banned_email = True
yield rx.set_focus("email")
return
Expand Down
Loading