Welcome Guest, Not a member yet? Register   Sign In
Question about callback function
#2

[eluser]Clooner[/eluser]
I think check_login is called before the md5 of the password field is called.

So maybe simply changing this
Code:
$rules['username'] = 'trim|required|callback_check_login';
    $rules['passwd'] = 'trim|required|md5';
in to this
Code:
$rules['passwd'] = 'trim|required|md5';
    $rules['username'] = 'trim|required|callback_check_login';
should do the trick.


Messages In This Thread
Question about callback function - by El Forum - 03-18-2008, 12:46 PM
Question about callback function - by El Forum - 03-20-2008, 01:37 AM
Question about callback function - by El Forum - 03-20-2008, 02:40 AM
Question about callback function - by El Forum - 03-20-2008, 05:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB