Commit 4959a5ed1035706b6d2dcda40399ed27da81b0b3

Authored by Michael Joseph
1 parent 18f53d93

changed phpdoc @author


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@130 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 3 deletions
lib/DBAuthenticator.inc
... ... @@ -8,7 +8,7 @@ require_once("$default->owl_fs_root/lib/Authenticator.inc");
8 8 * Perform authentication tasks against the database.
9 9 *
10 10 * @version $Revision$
11   - * @author michael@jamwarehouse.com
  11 + * @author <a href="mailto:michael@jamwarehouse.com>Michael Joseph</a>, Jam Warehouse (Pty) Ltd, South Africa
12 12 * @package dmslib
13 13 */
14 14  
... ... @@ -25,11 +25,12 @@ class DBAuthenticator extends Authenticator {
25 25 */
26 26 function checkPassword($userName, $password) {
27 27 global $default;
28   -
29   - $sql = new Owl_DB;
  28 +
  29 + $sql = new Owl_DB;
30 30 $query = "select * from $default->owl_users_table where username = '$userName' and password = '" . md5($password) . "'";
31 31 $sql->query($query);
32 32 $numrows = $sql->num_rows($sql);
  33 +
33 34 if ($numrows == "1") {
34 35 return true;
35 36 } else {
... ...