From 384bd2fc17d077e3c01cc985ce059720177e000d Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 10 May 2020 00:26:15 +0200 Subject: [PATCH] Fix magic_link view data --- package.json | 2 +- src/auth/magic_link/MagicLinkController.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1eb525c..8eade23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wms-core", - "version": "0.4.30", + "version": "0.4.31", "description": "Node web framework", "repository": "git@gitlab.com:ArisuOngaku/wms-core.git", "author": "Alice Gaudon ", diff --git a/src/auth/magic_link/MagicLinkController.ts b/src/auth/magic_link/MagicLinkController.ts index 42a2ab9..d9c3c6f 100644 --- a/src/auth/magic_link/MagicLinkController.ts +++ b/src/auth/magic_link/MagicLinkController.ts @@ -101,8 +101,7 @@ export default abstract class MagicLinkController extends Controller { } res.render('magic_link', { - actionType: await magicLink?.getActionType(), - actionMessage: await magicLink?.getActionMessage(), + magicLink: magicLink, err: err, success: success && err === null, });