[icinga-checkins] icinga.org: icinga-web/mhein/default: * Fixed auth problem (don' t know where this came from)

git at icinga.org git at icinga.org
Wed Sep 29 17:26:21 CEST 2010


Module: icinga-web
Branch: mhein/default
Commit: 0c086625026bbfce34c2fe2751f3ca252c8ed0c8
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=0c086625026bbfce34c2fe2751f3ca252c8ed0c8

Author: jmosshammer <jannis.mosshammer at netways.com>
Date:   Wed Sep 29 15:43:31 2010 +0200

* Fixed auth problem (don't know where this came from)

---

 .../models/Auth/Provider/AuthKeyModel.class.php    |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php b/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php
index 58dd649..0d66adb 100644
--- a/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php
+++ b/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php
@@ -19,13 +19,13 @@ class AppKit_Auth_Provider_AuthKeyModel extends AppKitAuthProviderBaseModel  imp
 	 * @see app/modules/AppKit/lib/auth/AppKitIAuthProvider#isAvailable()
 	 */
 	public function isAvailable($uid, $authid=null) {
-		
+		echo $uid." \n\n<br/>";
 		$res = Doctrine_Query::create()
 		->select('COUNT(u.user_id) as cnt')
 		->from('NsmUser u')
-		->where('u.user_name=? and user_disabled=? and user_authsrc = ?', array($uid, 0,'auth_key'))
-		->execute(null, Doctrine::HYDRATE_ARRAY);
-		
+		->where('u.user_authkey=? and user_disabled=? and user_authsrc = ?', array($uid, 0,'auth_key'));
+
+		$res = $res->execute(null, Doctrine::HYDRATE_ARRAY);
 		if ($res[0]['cnt'] !== 0) {
 			return true;
 		}





More information about the icinga-checkins mailing list