| Re: Connect to an account by clicking on a link ... |
| by wishcraft on 2011/4/29 13:21:13 Please check your email.. for a response. |
| Re: Connect to an account by clicking on a link ... |
| by kakos on 2011/4/28 15:17:16 Hi Simon.... Thanks for your response. I've sent you pm |
| Re: Connect to an account by clicking on a link ... |
| by wishcraft on 2011/4/27 15:15:56 Yes it is possible, but it involves a hack and generation of a script for logging the user in.. Not to difficult, would take me around 20 minutes for the script to be written, however, the mail function would take a little more maybe another 20 minutes or so. I suggest you have a link like so: Quote:
To generate the passkey which is like a password only logs you in you could make the following MD5 i would say le="color: #000000"><?php $passkey = md5($user->getVar('pass').XOOPS_LICENSE_KEY.date('Ymdh')); You would then need a string that matched the passkey based on the amount of time you want to enable this, I suggest 2 days for example which is 48 hours so you do a loop on the incoming with a piece of code like this: le="color: #000000"><?php //Taken and adapted from profile 1.67 - from dojsonvalidate.php function checkpasskey($key, $user) { $minseed = strtotime(date('Y-m-d h:i')); $diff = intval(((48*3600)/2)); for($step=($minseed-$diff);$step<($minseed+$diff);$step=$step+3600) if ($key==md5($user->getVar('pass').XOOPS_LICENSE_KEY.date('Ymdh', $step))) return true; return false; } Once that passkey is matched then you can log the user in by setting the session then doing a redirect_header(XOOPS_URL, 10, _WELCOME); to place them at the front screen. If you want me to do it is $70 AUD an hour.. Contact me on skype. |
| Connect to an account by clicking on a link ... |
| by kakos on 2011/4/27 11:39:53 Is it possible to send via mail a link that contains the login information (in encrypted mode) so if clicks to this link automatically connect to an account that has been created from admins .... |