mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed handling of invalid tokens when changing email
no-issue Without a return after ending the response, the code will continue to attempt to send emails and then send another response which results in an uncaught error.
This commit is contained in:
parent
9031602406
commit
e93d092766
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module.exports = class MemberController {
|
|||
tokenData.oldEmail = member.get('email');
|
||||
} catch (err) {
|
||||
res.writeHead(401);
|
||||
res.end('Unauthorized.');
|
||||
return res.end('Unauthorized.');
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue