For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2007 > Liveuser Pakage









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Liveuser Pakage
Gaurav Deshpande

2007-03-30, 7:01 pm

Hi,

I m using the liveuser sample programme given on the url
http://www.gvngroup.be/doc/LiveUser/authentication.php
As told to me according that i have moved the declaration of function
is_pswd_ok , but still its not working.
My problem is that i m using the user defined function is_pswd_ok. And
register the rule by command.

$form->registerRule('check_pswd', 'callback', 'is_pswd_ok', $form);
its giving error while trying to login as follows .

*Warning*: call_user_func(HTML_QuickForm::is_pswd_o
k) [
function.call-user-func<http://192.168.10.16/%7Eignu/go/liv....call-user-func>]:
First argument is expected to be a valid callback in *
/usr/share/php/HTML/QuickForm/Rule/Callback.php* on line *66*
It has concluded me the registering rule function "is_paswd_ok" should be
member function of Quick form class. while the function is_pswd_ok is
defined i the test programme which is not member function of quick form
class. The function methode is defined in the programe is appeared to be the
same.
Kindly tell me the another methode or some other workin example of
LiveUser authentication pakage if any.
**

Regards,

gaurav

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com