Hotmail for some reason appends x_ to the key

This commit is contained in:
Rogerio Chaves 2020-04-16 22:35:09 +02:00
parent 4a634ee2ae
commit 47f5d68a2c
No known key found for this signature in database
GPG Key ID: E6AF5440509B1D94
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ router.post("/login", async (req, res) => {
const submittedKey =
req.files && req.files.ssb_key
? req.files.ssb_key.data.toString()
: req.body.ssb_key;
: req.body.ssb_key || req.body.x_ssb_key; // x_ssb_key is because hotmail for some reason appends the x_
try {
const decodedKey = reconstructKeys(submittedKey);