maciejhpl Posted May 25, 2016 Share Posted May 25, 2016 Hi, there is a variable which has the only key? e.g. {$pw_reset_key} 0 Quote Link to comment Share on other sites More sharing options...
servetas Posted May 25, 2016 Share Posted May 25, 2016 As far as I know, no key is requested for validation by whmcs. WHMCS directly offers a validation url using {$pw_reset_url} . 0 Quote Link to comment Share on other sites More sharing options...
maciejhpl Posted May 30, 2016 Author Share Posted May 30, 2016 ok, I did it with hook <?php use Illuminate\Database\Capsule\Manager as Capsule; if (!defined("WHMCS")) die("This file cannot be accessed directly"); function password_reset_key($vars) { $merge_fields = array(); $res = Capsule::table('tblclients')->where('id', $vars['relid'])->get(); $merge_fields['pw_reset_key'] = $res[0]->pwresetkey; return $merge_fields; } add_hook("EmailPreSend",1,"password_reset_key"); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.