Skip to content

Commit 50d1417

Browse files
Fixed config bug
1 parent 9bb1a6a commit 50d1417

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/eSignature/controllers/eg001EmbeddedSigning.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ eg001EmbeddedSigning.getController = (req, res) => {
8585
// since they have not yet entered any information into the form.
8686
const tokenOK = req.dsAuth.checkToken();
8787
if (tokenOK) {
88-
if (dsConfig.quickACG) {
88+
console.log(res.locals.quickACG);
89+
if (res.locals.quickACG) {
8990
res.render('pages/examples/quickEmbeddedSigning', {
9091
eg: eg, csrfToken: req.csrfToken(),
9192
title: "Use embedded signing",

quick_acg/quickACG.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ let app = express()
4848
.use(((req, res, next) => {
4949
res.locals.user = req.user;
5050
res.locals.session = req.session;
51-
res.locals.dsConfig = { ...dsConfig, docOptions: docOptions, docNames: docNames };
51+
res.locals.dsConfig = { ...dsConfig, docOptions: docOptions, docNames: docNames};
52+
res.locals.quickACG = true;
5253
res.locals.examplesApi = {"isESignatureApi":true};
5354
res.locals.hostUrl = hostUrl; // Used by DSAuthCodeGrant#logout
5455
next()

0 commit comments

Comments
 (0)