6.0.0-beta1
7/4/25

[#5151] CustomSQL Auth - function exists
Summary CustomSQL Auth - function exists
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester x3n (at) molinier (dot) eu
Created 03/22/2007 (6679 days ago)
Due
Updated 03/23/2007 (6678 days ago)
Assigned
Resolved 03/23/2007 (6678 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/23/2007 08:04:56 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Implemented by adding query_exists to the driver configuration in HEAD.
03/22/2007 04:36:52 PM x3n (at) molinier (dot) eu Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ CustomSQL Auth - function exists
Queue ⇒ Horde Framework Packages
Reply to this comment
There is no definition for the function "exists " in the customSQL 
Auth Backend. By default, the function of the SQL backend is used but 
unfortunatly it doesn't work.



Parameters for SQL and CustomSQL are different. I propuse using the 
following function in the class customSQL :



     function exists($userId)

     {

         return in_array($userId, $this->listUsers());

     }



Otherwise, we can ask the user a query handling the existance of an 
user. This could be more efficient than listing all users and then 
searching him in the array...



Best regards,



x3n

http://www.molinier.eu

Saved Queries