🧹
This commit is contained in:
@@ -56,16 +56,14 @@ export default function Login() {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
setErrorMessage("error");
|
setErrorMessage("Error");
|
||||||
toast.dismiss();
|
toast.dismiss();
|
||||||
toast.error("Something went wrong.");
|
toast.error("Something went wrong.");
|
||||||
}
|
}
|
||||||
// we're logged in! let's do a hard refresh to the desired url
|
|
||||||
else if (!res.error) {
|
else if (!res.error) {
|
||||||
|
// we're logged in, let's do a hard refresh to the original url
|
||||||
router.push(callbackUrl);
|
router.push(callbackUrl);
|
||||||
// toast.error("error");
|
|
||||||
}
|
}
|
||||||
// fallback if error not found
|
|
||||||
else {
|
else {
|
||||||
toast.dismiss();
|
toast.dismiss();
|
||||||
if (res.status == 401) {
|
if (res.status == 401) {
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ export const sendSigningDoneMail = async (
|
|||||||
await sendMail(
|
await sendMail(
|
||||||
user.email,
|
user.email,
|
||||||
`Completed: "${document.title}"`,
|
`Completed: "${document.title}"`,
|
||||||
// base template with footer and box vs content template for eact type
|
|
||||||
signingCompleteTemplate(`All recipients have signed "${document.title}".`),
|
signingCompleteTemplate(`All recipients have signed "${document.title}".`),
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user