Skip to content

Commit c09004e

Browse files
committed
Add AvvikAccess to login flow
1 parent 788c99e commit c09004e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/login-flow/classes/controllers/DefaultLoginFlowController.cls

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ public without sharing class DefaultLoginFlowController {
6262
microsoftGraphResponse.groupIds
6363
);
6464

65-
66-
if (Test.isRunningTest() && currentUser.navId == null) {
67-
currentUser.navId = '12345';
68-
}
65+
6966

7067
System.enqueueJob(
7168
new AdGroupSyncQueueable(
@@ -75,6 +72,10 @@ public without sharing class DefaultLoginFlowController {
7572
);
7673
refreshTokenService.saveRefreshToken(refreshToken);
7774

75+
if (String.isNotBlank(currentUser.navId)) {
76+
System.enqueueJob(new AvvikAccess(currentUser.navId));
77+
}
78+
7879
//finnish login flow
7980
retUrlCookie = ApexPages.currentPage().getCookies().get('retUrl');
8081
retUrl = retUrlCookie.getValue();

0 commit comments

Comments
 (0)