Skip to content

Commit b367bde

Browse files
committed
Use safe_username where + can be present
1 parent 753ffe7 commit b367bde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

registrations/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77

88
@shared_task
99
def send_notification_create(token, username, is_staff, email):
10+
safe_username = username.replace("+", "%2B")
1011
email_context = {
1112
"confirmation_link": "%s/verify_email/?token=%s&user=%s"
1213
% (
1314
settings.GO_API_URL, # on PROD it should point to goadmin...
1415
token,
15-
username,
16+
safe_username,
1617
)
1718
}
1819

0 commit comments

Comments
 (0)