Skip to content

Commit

Permalink
feat: send exp version to track in auth0 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed May 23, 2024
1 parent 5c6d250 commit 3f4c89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/auth-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = function authRouter(config = {}) {

// Opt-In Communication Exp MP-271
if (cookies.opt_in_comms) {
options.optInComms = true;
options.optInComms = cookies.opt_in_comms;
}

info(`LoginUI: attempt login, session id:${req.sessionID}, cookie:${getSyncCookie(req)}, done url:${req.query.doneUrl}`); // eslint-disable-line max-len
Expand Down
4 changes: 1 addition & 3 deletions src/components/WwwFrame/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,7 @@ export default {
fragment: experimentVersionFragment,
}) ?? {};
if (version === 'b') {
this.cookieStore.set(COMMS_OPT_IN_EXP_KEY, true, { path: '/' });
}
this.cookieStore.set(COMMS_OPT_IN_EXP_KEY, version, { path: '/' });
userHasLentBefore(this.cookieStore.get(hasLentBeforeCookie) === 'true');
userHasDepositBefore(this.cookieStore.get(hasLentBeforeCookie) === 'true');
Expand Down

0 comments on commit 3f4c89d

Please sign in to comment.