Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
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
6 changes: 3 additions & 3 deletions server/custom_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ def check_existing_user(field_values, source="registration"):

if User.objects.filter(username__iexact=username).exists():
logger.error(f"Error {source}: username already exists")
return "Username already exists."
return "Username already exists. Try logging in, or use `/reset_password` in the discord server to reset your password."

if User.objects.filter(discord_username__iexact=discord_username).exists():
logger.error(f"Error {source}: discord username already exists")
return "Discord username already exists."
return "Discord username already exists. Try logging in, or use `/reset_password` in the discord server to reset your password."
Comment thread
Advayp marked this conversation as resolved.
Outdated

if User.objects.filter(email__iexact=email).exists():
logger.error(f"Error {source}: email already exists")
return "Email already exists."
return "Email already exists. Try logging in, or use `/reset_password` in the discord server to reset your password."
Comment thread
Advayp marked this conversation as resolved.
Outdated

return None

Expand Down