Skip to content

Commit

Permalink
Stop restricted users from being able to use the wiki.
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Oct 31, 2014
1 parent d608cd0 commit bb37196
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/Auth_phpBB.php
Expand Up @@ -329,6 +329,7 @@ public function authenticate($username, $password)
$fstrMySQLQuery = sprintf("SELECT `user_id`, `username_clean`, `user_password`
FROM `%s`
WHERE `username_clean` = '%s'
AND user_warnings = 0
LIMIT 1",
$this->_UserTB,
mysqli_real_escape_string($pConn, $username));
Expand Down Expand Up @@ -507,6 +508,7 @@ public function getCanonicalName( $username )
$fstrMySQLQuery = sprintf("SELECT `username_clean`
FROM `%s`
WHERE `username_clean` = '%s'
AND user_warnings = 0
LIMIT 1",
$this->_UserTB,
mysqli_real_escape_string($pConn, $username));
Expand Down Expand Up @@ -548,6 +550,7 @@ public function initUser( &$user, $autocreate=false )
$fstrMySQLQuery = sprintf("SELECT `username_clean`, `user_email`
FROM `%s`
WHERE `username_clean` = '%s'
AND user_warnings = 0
LIMIT 1",
$this->_UserTB,
mysqli_real_escape_string($pConn, $username));
Expand Down

0 comments on commit bb37196

Please sign in to comment.