mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
[PM-3571] Address HTML injection in passwordless login emails (#3623)
* [PM-3571] Update HandlebarsMailService for Passwordless login email URL, using AbsoluteUri which has html encoding * [PM-3571] Switched from AbsoluteUri to OriginalString --------- Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
This commit is contained in:
parent
6174df0874
commit
a08541173d
@ -263,7 +263,7 @@ public class HandlebarsMailService : IMailService
|
||||
});
|
||||
var model = new PasswordlessSignInModel
|
||||
{
|
||||
Url = url.ToString()
|
||||
Url = url.OriginalString
|
||||
};
|
||||
await AddMessageContentAsync(message, "Auth.PasswordlessSignIn", model);
|
||||
message.Category = "PasswordlessSignIn";
|
||||
|
Loading…
x
Reference in New Issue
Block a user