From: Tomas K. <to...@us...> - 2004-03-23 19:24:45
|
> Hi, > > I am putting together a plugin to add an IMSP addressbook to SquirrelMail. > In order to log the user into the IMSP server, I need the username and > password that they entered in the login.php page. > > If I understand what I am looking at when I read through the plugin.txt > file > and look at several plugins, get_pref is the hook I would use to get the > username but I do not see a mechanism to get the password. Can you help? // get username variable global $username; code from change_password plugin (part of SM 1.5.0). ---- // for decrypting current password sqgetGlobalVar('key', $key, SQ_COOKIE); sqgetGlobalVar('onetimepad', $onetimepad,SQ_SESSION); $passwd = OneTimePadDecrypt($key, $onetimepad)); ---- -- Tomas |