Is it possible to force DbTable adapter to not verify password, just to
check if there is given login name or tu set my own verify-password method?
I have in user table column password but this password is crypted by php
function crypt().
Problem is becouse of salt. I can't compare crypted password before I
get salt in it.
Earlier i did something like this:
$ROW = "SELECT login, pass FROM user WHERE login=$login";
if ($ROW['pass'] == crypt($pass, $ROW['pass']))
//it's ok
Have you ever had such a problem? Of course i can write my own adapter
or extends it on Zend_Auth_Adapter_DbTable but would me nice if this one
works fine.
greetings
--
Piotr Kabacinski
kabot@seo.pl
没有评论:
发表评论