[Tickets #1622] NEW: Allow custom error messages from pre/post auth
	hooks
    bugs at bugs.horde.org 
    bugs at bugs.horde.org
       
    Thu Mar 24 18:30:31 PST 2005
    
    
  
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1622
-----------------------------------------------------------------------
 Ticket             | 1622
 Created By         | eli at experthost.com
 Summary            | Allow custom error messages from pre/post auth hooks
 Queue              | Horde Base
 Version            | 3.0.3
 State              | New
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | 
+New Attachment     | custom_errors.patch
-----------------------------------------------------------------------
eli at experthost.com (2005-03-24 18:30) wrote:
In the pre & post auth hooks (_horde_hook_preauthenticate,
_horde_hook_postauthenticate), it is impossible to specify a custom error
message to be displayed to the user for login failures.  This is because the
true/false return of the hook is used to simply generate the generic login
failure error message.
It would be nice to be able to specify a custom error message for all hooks,
and the attached patch allows for such a feature in at least the pre/post
auth hooks.
However, I would highly recommend the patch be used simply as an idea - it
generates low level warning messages sometimes when the
$GLOBALS['__autherror'] array does not exist (querying a non-existant key
name), and also hard codes the $GLOBALS['__autherror'] array in a place
where an abstraction function to access such info should really be used.
Eli.
    
    
More information about the bugs
mailing list