File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
modules/os2forms_nemid/src/EventSubscriber Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
11
11
12
12
## [ Unreleased]
13
13
14
+ - Fixed NemID fields populate caching issue
15
+
14
16
- Fixed issue with wrong authorization provider used when multiple are enabled
15
17
16
18
## [ 3.8.0] 2023-07-12
Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ public function redirectToNemlogin(GetResponseEvent $event) {
147
147
return ;
148
148
}
149
149
150
+ // Killing cache on webform so that populated values are never cached.
151
+ $ this ->pageCacheKillSwitch ->trigger ();
152
+
150
153
$ webformNemidSettings = $ webform ->getThirdPartySetting ('os2forms ' , 'os2forms_nemid ' );
151
154
152
155
// Getting nemlogin_auto_redirect setting.
@@ -156,10 +159,6 @@ public function redirectToNemlogin(GetResponseEvent $event) {
156
159
}
157
160
// Checking if $nemlogin_auto_redirect is on.
158
161
if ($ nemlogin_auto_redirect ) {
159
- // Killing cache so that positive or negative redirect decision is not
160
- // cached.
161
- $ this ->pageCacheKillSwitch ->trigger ();
162
-
163
162
// Getting auth plugin ID override.
164
163
$ authPluginId = NULL ;
165
164
if (isset ($ webformNemidSettings ['session_type ' ]) && !empty ($ webformNemidSettings ['session_type ' ])) {
You can’t perform that action at this time.
0 commit comments