Skip to content
Snippets Groups Projects
Commit f75e12d2 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

set_key now returns true or false, this prevents accidental 204 responses from being sent

parent de6afc97
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ function setup(app) {
} else {
// same account, we add the key
db.addKeyToEmail(req.session.authenticatedUser, req.body.email, req.body.pubkey, function (rv) {
resp.json(rv);
resp.json(rv === undefined);
});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment