Skip to content

Commit 103874a

Browse files
authored
Merge pull request #36 from RRZE-Webteam/dev
Update Main.php
2 parents 5389579 + 4fb5248 commit 103874a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

includes/Main.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ public function loaded()
5151
$authenticate = new Authenticate($authSimple);
5252
$authenticate->loaded();
5353

54-
add_action('init', function () use ($authSimple) {
55-
if (
56-
is_user_logged_in()
57-
&& !$authSimple->isAuthenticated()
58-
) {
59-
wp_destroy_current_session();
60-
wp_clear_auth_cookie();
61-
wp_set_current_user(0);
62-
}
63-
});
54+
// add_action('init', function () use ($authSimple) {
55+
// if (
56+
// is_user_logged_in()
57+
// && !$authSimple->isAuthenticated()
58+
// ) {
59+
// wp_destroy_current_session();
60+
// wp_clear_auth_cookie();
61+
// wp_set_current_user(0);
62+
// }
63+
// });
6464

6565
$this->registerRedirect();
6666
$this->userNewPageRedirect();

0 commit comments

Comments
 (0)