Temporary debugging logic for #439
This commit is contained in:
parent
9fb954e560
commit
169d4fb911
|
@ -24,6 +24,7 @@ export class EmailAuthServer implements AuthServer {
|
|||
);
|
||||
return { email, requestId, sentAt };
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
throw new Err(ErrorCode.AUTHENTICATION_FAILED, `Failed to send email to ${email}`);
|
||||
}
|
||||
} else {
|
||||
|
@ -55,6 +56,7 @@ export class EmailAuthServer implements AuthServer {
|
|||
await this.messenger.send(authenticator.state.email, message);
|
||||
return { email, subject: message.title, sentAt };
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
throw new Err(ErrorCode.AUTHENTICATION_FAILED, `Failed to send email to ${email}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue