Commit 5dfe7cfe99644f9e95fb29b3ea90cce167ff9595
1 parent
74bceb77
fixed session table query
updated header git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@101 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
4 deletions
lib/Authenticator.inc
| @@ -5,9 +5,11 @@ | @@ -5,9 +5,11 @@ | ||
| 5 | * | 5 | * |
| 6 | * Interface class that performs all authentication functions. | 6 | * Interface class that performs all authentication functions. |
| 7 | * | 7 | * |
| 8 | - * @version $Revision$ | ||
| 9 | - * @author michael@jamwarehouse.com | ||
| 10 | - * @package dmslib | 8 | + * Licensed under the GNU GPL. For full terms see the file COPYING. |
| 9 | + * | ||
| 10 | + * @version $Revision$ | ||
| 11 | + * @author <a href="mailto:michael@jamwarehouse.com>Michael Joseph</a>, Jam Warehouse (Pty) Ltd, South Africa | ||
| 12 | + * @package dms | ||
| 11 | */ | 13 | */ |
| 12 | class Authenticator { | 14 | class Authenticator { |
| 13 | 15 | ||
| @@ -52,7 +54,7 @@ class Authenticator { | @@ -52,7 +54,7 @@ class Authenticator { | ||
| 52 | 54 | ||
| 53 | // Check if Maxsessions has been reached | 55 | // Check if Maxsessions has been reached |
| 54 | $sql = new Owl_DB; | 56 | $sql = new Owl_DB; |
| 55 | - $sql->query("select * from $default->owl_sessions_table where uid = '".$userDetails["user_id"]."'"); | 57 | + $sql->query("select * from $default->owl_sessions_table where id = '".$userDetails["user_id"]."'"); |
| 56 | if ($sql->num_rows($sql) >= $userDetails["max_sessions"]) { | 58 | if ($sql->num_rows($sql) >= $userDetails["max_sessions"]) { |
| 57 | if ( $userDetails["group_id"] == 0) { | 59 | if ( $userDetails["group_id"] == 0) { |
| 58 | // ignore maxsessions check for admin group | 60 | // ignore maxsessions check for admin group |