Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -bcr ../UserSpice41/users/forgot_password_reset.php ./users/forgot_password_reset.php
- *** ../UserSpice41/users/forgot_password_reset.php 2016-08-15 15:51:50.188111600 +0200
- --- ./users/forgot_password_reset.php 2016-08-26 22:19:21.609556100 +0200
- ***************
- *** 62,67 ****
- --- 62,68 ----
- $ruser->update(array(
- 'password' => password_hash(Input::get('password'), PASSWORD_BCRYPT, array('cost' => 12)),
- 'vericode' => rand(100000,999999),
- + 'email_verified' => true,
- ),$ruser->data()->id);
- $reset_password_success=TRUE;
- }else{
- diff -bcr ../UserSpice41/users/views/_email_template_forgot_password.php ./users/views/_email_template_forgot_password.php
- *** ../UserSpice41/users/views/_email_template_forgot_password.php 2016-08-15 15:51:53.748850500 +0200
- --- ./users/views/_email_template_forgot_password.php 2016-08-26 22:42:48.896428300 +0200
- ***************
- *** 12,18 ****
- <p>Hello <?=$fname;?>,</p>
- <p>You are receiving this email because a request was made to reset your password. If this was not you, you may disgard this email.</p>
- <p>If this was you, click the link below to continue with the password reset process.</p>
- ! <p><a href="<?=$results->verify_url?>users/forgot_password_reset.php?email=<?=$email;?>&vericode=<?=$vericode;?>&reset=1">Reset Password</a></p>
- <p>Sincerely,</p>
- <p>-The Team-</p>
- </body>
- --- 12,18 ----
- <p>Hello <?=$fname;?>,</p>
- <p>You are receiving this email because a request was made to reset your password. If this was not you, you may disgard this email.</p>
- <p>If this was you, click the link below to continue with the password reset process.</p>
- ! <p><a href="<?php echo $results->verify_url."users/forgot_password_reset.php?email=".urlencode($email)."&vericode=$vericode&reset=1"; ?>">Reset Password</a></p>
- <p>Sincerely,</p>
- <p>-The Team-</p>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement