Skip to content
Snippets Groups Projects
Commit 862463a1 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent a6fb4f2e
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ export default async (job: kue.Job, done): Promise<void> => {
if (host === null) {
console.warn(`request was made by local user: @${username}`);
done();
return;
}
user = await User.findOne({ usernameLower: username, hostLower: host }) as IRemoteUser;
......@@ -40,7 +41,8 @@ export default async (job: kue.Job, done): Promise<void> => {
}
if (!verifySignature(signature, user.account.publicKey.publicKeyPem)) {
done(new Error('signature verification failed'));
console.warn('signature verification failed');
done();
return;
}
......
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