Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merged fix from 1.7 MDL-7211

  • Loading branch information...
commit 8327b310576ffea5845502e11b643fa50a33cdd5 1 parent 3080f36
authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  auth/fc/fcFPP.php
5  auth/fc/fcFPP.php
@@ -111,7 +111,8 @@ function login($userid, $passwd)
111 111
 		$this->_user = $userid;
112 112
 		$this->_pwd  = $passwd; 
113 113
 		return TRUE;		
114  
-	    } elseif (preg_match ("/^\Sorry/",$line)){	//Denied access but a valid user and password
  114
+        } elseif (strpos($line, 'You are not allowed')){ // Denied access but a valid user and password
  115
+                                                         // "Sorry. You are not allowed to login with the FPP interface"
115 116
 	    	return TRUE;
116 117
 	    } else {					//Invalid user or password
117 118
 		return FALSE;
@@ -215,4 +216,4 @@ function getResume($userid){
215 216
 }
216 217
    
217 218
 
218  
-?>
  219
+?>

0 notes on commit 8327b31

Please sign in to comment.
Something went wrong with that request. Please try again.