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