add some logging
parent
2b68db954c
commit
8c7d8ce512
|
@ -53,6 +53,7 @@ const authenticate = async (msg, respond, socket) => {
|
|||
});
|
||||
}
|
||||
} catch (err) {
|
||||
console.err("error in authentication: " + err);
|
||||
return respond({
|
||||
success: false,
|
||||
message: "Message signature verification failed",
|
||||
|
|
|
@ -29,6 +29,7 @@ const create_user = async (msg, respond) => {
|
|||
try {
|
||||
await openpgp.readKey({ armoredKey: msg.pubkey });
|
||||
} catch (err) {
|
||||
console.err("error in create_user readkey: " + err);
|
||||
return respond({
|
||||
success: false,
|
||||
message: "Public key invalid",
|
||||
|
|
Loading…
Reference in New Issue