mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
mail-unlink: send 200 response
This commit is contained in:
parent
4def0d3fa6
commit
142bee3f7e
|
@ -320,6 +320,7 @@ authRoutes.post("/remove_email", requiresAccount, (req,res) => {
|
|||
if (acc.email) {
|
||||
delete acc.email;
|
||||
Accounts.save()
|
||||
res.send("email detached")
|
||||
}
|
||||
else ServeError(res, 400, "email not attached")
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue