mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
23f61c68b4
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`.
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.1",
|
|
"notification_name": "One-Time Passcode",
|
|
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_email": "bobby/drop-table+user@coder.com",
|
|
"user_name": "Bobby",
|
|
"user_username": "bobby",
|
|
"actions": [
|
|
{
|
|
"label": "Reset password",
|
|
"url": "http://test.com/reset-password/change?otp=00000000-0000-0000-0000-000000000000\u0026email=bobby%2Fdrop-table%2Buser%40coder.com"
|
|
}
|
|
],
|
|
"labels": {
|
|
"one_time_passcode": "00000000-0000-0000-0000-000000000000"
|
|
},
|
|
"data": null
|
|
},
|
|
"title": "Reset your password for Coder",
|
|
"title_markdown": "Reset your password for Coder",
|
|
"body": "Hi Bobby,\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message.",
|
|
"body_markdown": "Hi Bobby,\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message."
|
|
} |