From: Reini U. <ru...@x-...> - 2004-03-12 22:14:21
|
Konstantin, Could you please use a unified diff? cvs diff -u or echo "diff -ub" >> ~/.cvsrc Thanks to your fixes we are now almost ready. ADODB has some serious problems also on linux. Konstantin Zadorozhny schrieb: > I run onto some problems with UserPreferences plug-in, with PersonalPage > auth method. Now it trying to call storePass function to change password. > But this function does exists only for DB like user types. Here it is small > path to avoid this problem. > > > > Actually, I don't know is it right or not call changePass method. Correct me > if I'm wrong. But for now it returns false for me. > > > > Also user preferences fail to be saved. Line $num = > $user->setPreferences($rp); returns 0 right now. > > > > I'll keep digging, but I believe that this problem will be faster to fix for > somebody little bit more familiar with code. > > > > Index: UserPreferences.php > =================================================================== > RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/UserPreferences.php,v > retrieving revision 1.19 > diff -r1.19 UserPreferences.php > 88,94c88,104 > < if ($user->mayChangePass()) { > < $user->storePass($rp['passwd']); > < $errmsg = _("Password updated."); > < } else { > < $errmsg = _("Password cannot be > changed."); > < } > < } > --- > >> $passchanged = false; >> if ($user->mayChangePass()) { >> if (method_exists($user, 'storePass')) { >> $passchanged = $user->storePass($rp['passwd']); >> } >> if (method_exists($user, 'changePass')) { >> $passchanged = > > $user->changePass($rp['passwd']); > >> } >> if ($passchanged) { >> $errmsg = _("Password updated."); >> } else { >> $errmsg = _("Password cannot be changed."); >> } >> } else { >> $errmsg = _("Password cannot be changed."); >> } >> } -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |