Permalink
Browse files

Merged fix from 1.7 MDL-7211

  • Loading branch information...
1 parent 3080f36 commit 8327b310576ffea5845502e11b643fa50a33cdd5 moodler committed Nov 1, 2006
Showing with 3 additions and 2 deletions.
  1. +3 −2 auth/fc/fcFPP.php
View
@@ -111,7 +111,8 @@ function login($userid, $passwd)
$this->_user = $userid;
$this->_pwd = $passwd;
return TRUE;
- } elseif (preg_match ("/^\Sorry/",$line)){ //Denied access but a valid user and password
+ } elseif (strpos($line, 'You are not allowed')){ // Denied access but a valid user and password
+ // "Sorry. You are not allowed to login with the FPP interface"
return TRUE;
} else { //Invalid user or password
return FALSE;
@@ -215,4 +216,4 @@ function getResume($userid){
}
-?>
+?>

0 comments on commit 8327b31

Please sign in to comment.