WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Bug in user signup
  • Print
Pages: [1]   Go Down

Author Topic: Bug in user signup  (Read 7451 times)

nl

  • Guest
Bug in user signup
« on: January 15, 2008, 11:28:25 AM »
Hi,

I think I have found a bug in the user sign up script.

If the confirmation email can not be sent, the user is shown an error message on screen and the script dies. There is, after this, a database call to DELETE the details the user has just entered from the database.

This call is made after the script dies so the entered user details are never removed.

Code: [Select]
       $wb->print_error($MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'], $js_back, false);
        $database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'");

this works:

Code: [Select]
       $database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'");
        $wb->print_error($MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'], $js_back, false);
       

I hope I have posted this to the right place.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Bug in user signup
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2