Removed log-in tampering
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 9 May 2016 21:19:01 +0000 (17:19 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 9 May 2016 21:19:01 +0000 (17:19 -0400)
index.php

index eda15a1..4b2c6e0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -186,7 +186,7 @@ require_once(GLM_MEMBERS_CONTACTS_PLUGIN_SETUP_PATH.'/permissions.php');
  */
 
 $wpUserID = get_current_user_id();
-
+/*
 // Message to display on Login page after a forced logout detection
 function glmMembersContactsNoLoginMessage( $message ) {
         $message .= "
@@ -204,7 +204,7 @@ if (isset($_COOKIE['glmMembersForcedLogout'])) {
     add_filter('login_message', 'glmMembersContactsNoLoginMessage');
     setcookie ("glmMembersForcedLogout", "", time() - 3600);
 }
-
+*/
 if ($wpUserID) {
 
     // Check if user's only role is as a restricted contact
@@ -224,11 +224,12 @@ if ($wpUserID) {
 
 }
 
+
 /*
  * Add filter to redirect user to a particular destination on
  * login based on their roles.
  */
-
+/*
 function my_login_redirect( $redirect_to, $request, $user ) {
 
     global $user;
@@ -255,6 +256,6 @@ function my_login_redirect( $redirect_to, $request, $user ) {
 
 }
 add_filter( 'login_redirect', 'my_login_redirect', 10, 3 );
-
+*/
 
 ?>
\ No newline at end of file