Results 1 to 2 of 2

Thread: User Validation Fix

  1. #1
    Join Date
    Jan 2005
    Location
    Stockbridge, GA
    Posts
    64

    Exclamation User Validation Fix

    I noticed that if you have Enable User Validation turned off, the email (mail/register.mail) still sends the validation link.

    If the user clicks on the link, they get a failed validation because line 164 in lib/users.class.php
    $query = "select vcode from $this->table_name where username='$username' and status = 0";
    Since status is already set to 1, the validation will fail.

    Either the " and status = 0" should be removed

    or

    the email should be changed to send the link based on Enable User Validation value.

    mail/register.mail
    Thanks for joining <%$site_name%>.

    username : <%$username%>
    password : <%$password%>


    <%if $enable_user_validation%>
    Please confirm your registration here:
    <%$site_url%>/register.php?u=<%$username%>&v=<%$vcode%>&pflag=cf
    <%/if%>

    Sincerely,

    <%$site_name%> Team

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

Similar Threads

  1. Replies: 4
    Last Post: 03-05-2006, 05:26 AM
  2. Replies: 1
    Last Post: 01-17-2006, 08:30 AM
  3. better user cp
    By cyberseeker in forum v3.2
    Replies: 2
    Last Post: 07-15-2002, 01:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •