Skip to content

Commit 0b779a2

Browse files
fixed variable names
1 parent 21f95de commit 0b779a2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/admin/controllers/eg006GetUserProfileByEmail.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
// Step 1. Check the token
2525
// At this point we should have a good token. But we
2626
// double-check here to enable a better UX to the user.
27-
const tokenOK = req.dsAuth.checkToken(minimumBufferMin);
28-
if (!tokenOK) {
27+
const isTokenOK = req.dsAuth.checkToken(minimumBufferMin);
28+
if (!isTokenOK) {
2929
req.flash('info', 'Sorry, you need to re-authenticate.');
3030
// Save the current operation so it will be resumed after authentication
3131
req.dsAuth.setEg(req, eg);
@@ -73,8 +73,8 @@
7373
// If needed, now is the best time to ask the user to authenticate
7474
// since they have not yet entered any information into the form.
7575

76-
let tokenOK = req.dsAuth.checkToken();
77-
if (tokenOK) {
76+
let isTokenOK = req.dsAuth.checkToken();
77+
if (isTokenOK) {
7878
try {
7979
await getOrganizationId(req);
8080

lib/admin/controllers/eg007GetUserProfileByUserId.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
// Step 1. Check the token
2525
// At this point we should have a good token. But we
2626
// double-check here to enable a better UX to the user.
27-
const tokenOK = req.dsAuth.checkToken(minimumBufferMin);
28-
if (!tokenOK) {
27+
const isTokenOK = req.dsAuth.checkToken(minimumBufferMin);
28+
if (!isTokenOK) {
2929
req.flash('info', 'Sorry, you need to re-authenticate.');
3030
// Save the current operation so it will be resumed after authentication
3131
req.dsAuth.setEg(req, eg);
@@ -73,8 +73,8 @@
7373
// If needed, now is the best time to ask the user to authenticate
7474
// since they have not yet entered any information into the form.
7575

76-
let tokenOK = req.dsAuth.checkToken();
77-
if (tokenOK) {
76+
let isTokenOK = req.dsAuth.checkToken();
77+
if (isTokenOK) {
7878
try {
7979
await getOrganizationId(req);
8080

0 commit comments

Comments
 (0)