mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
fix: urlencode email in reset password link (#15167)
Fixes https://github.com/coder/coder/issues/15151 This runs `urlencode` (provided by `text/template`) on the email address in the link. This ensures the link will work if a user has an email in the form `user+label@example.com`.
This commit is contained in:
@ -994,7 +994,7 @@ func TestNotificationTemplates_Golden(t *testing.T) {
|
||||
id: notifications.TemplateUserRequestedOneTimePasscode,
|
||||
payload: types.MessagePayload{
|
||||
UserName: "Bobby",
|
||||
UserEmail: "bobby@coder.com",
|
||||
UserEmail: "bobby/drop-table+user@coder.com",
|
||||
UserUsername: "bobby",
|
||||
Labels: map[string]string{
|
||||
"one_time_passcode": "fad9020b-6562-4cdb-87f1-0486f1bea415",
|
||||
|
Reference in New Issue
Block a user