Advertisement
pbowers

Fix + in email address, verify email on valid passwd chg

Aug 26th, 2016
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.90 KB | None | 0 0
  1. diff -bcr ../UserSpice41/users/forgot_password_reset.php ./users/forgot_password_reset.php
  2. *** ../UserSpice41/users/forgot_password_reset.php  2016-08-15 15:51:50.188111600 +0200
  3. --- ./users/forgot_password_reset.php   2016-08-26 22:19:21.609556100 +0200
  4. ***************
  5. *** 62,67 ****
  6. --- 62,68 ----
  7.             $ruser->update(array(
  8.               'password' => password_hash(Input::get('password'), PASSWORD_BCRYPT, array('cost' => 12)),
  9.               'vericode' => rand(100000,999999),
  10. +               'email_verified' => true,
  11.             ),$ruser->data()->id);
  12.             $reset_password_success=TRUE;
  13.         }else{
  14. diff -bcr ../UserSpice41/users/views/_email_template_forgot_password.php ./users/views/_email_template_forgot_password.php
  15. *** ../UserSpice41/users/views/_email_template_forgot_password.php  2016-08-15 15:51:53.748850500 +0200
  16. --- ./users/views/_email_template_forgot_password.php   2016-08-26 22:42:48.896428300 +0200
  17. ***************
  18. *** 12,18 ****
  19.       <p>Hello <?=$fname;?>,</p>
  20.       <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>
  21.       <p>If this was you, click the link below to continue with the password reset process.</p>
  22. !     <p><a href="<?=$results->verify_url?>users/forgot_password_reset.php?email=<?=$email;?>&vericode=<?=$vericode;?>&reset=1">Reset Password</a></p>
  23.       <p>Sincerely,</p>
  24.       <p>-The Team-</p>
  25.     </body>
  26. --- 12,18 ----
  27.       <p>Hello <?=$fname;?>,</p>
  28.       <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>
  29.       <p>If this was you, click the link below to continue with the password reset process.</p>
  30. !     <p><a href="<?php echo $results->verify_url."users/forgot_password_reset.php?email=".urlencode($email)."&vericode=$vericode&reset=1"; ?>">Reset Password</a></p>
  31.       <p>Sincerely,</p>
  32.       <p>-The Team-</p>
  33.     </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement