-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registration process? #10
Comments
I'm having the same problem. |
I had exactly the same problem but found the error, below you can see the solution: status) { if($user->username_taken) $errors[] = lang("ACCOUNT_USERNAME_IN_USE",array($username)); if($user->email_taken) $errors[] = lang("ACCOUNT_EMAIL_IN_USE",array($email)); } else { //Attempt to add the user to the database, carry out finishing tasks like emailing the user (if required) if(!$user->userPieAddUser()) { if($user->mail_failure) $errors[] = lang("MAIL_ERROR"); if($user->sql_failure) $errors[] = lang("SQL_ERROR"); } } } if(count($errors) == 0) { if($emailActivation) { $message = lang("ACCOUNT_REGISTRATION_COMPLETE_TYPE2"); } else { $message = lang("ACCOUNT_REGISTRATION_COMPLETE_TYPE1"); } } } ``` ?> <title>Registration | </title>Sign Up
|
Hi Letens, It's difficult to see the code you have changed from your comment. Did you just change one line or many? Mark |
more as one, I'm back next week, I'll check it then. Regards, Bob Op Fri, 28 Jun 2013 15:45:09 +0200 schreef Markol77
Bob Letens +32 486 24 07 54 |
Hi Markol77, I took a look inside the code and I figured out what was the changes (just copy everything to your register.php page, it should work fine). Essentially, he moved if(count($errors) == 0) that was in the first PHP section and modify it. status) { if($user->username_taken) $errors[] = lang("ACCOUNT_USERNAME_IN_USE",array($username)); if($user->email_taken) $errors[] = lang("ACCOUNT_EMAIL_IN_USE",array($email)); } else { //Attempt to add the user to the database, carry out finishing tasks like emailing the user (if required) if(!$user->userPieAddUser()) { if($user->mail_failure) $errors[] = lang("MAIL_ERROR"); if($user->sql_failure) $errors[] = lang("SQL_ERROR"); } } } if(count($errors) == 0) { if($emailActivation) { $message = lang("ACCOUNT_REGISTRATION_COMPLETE_TYPE2"); } else { $message = lang("ACCOUNT_REGISTRATION_COMPLETE_TYPE1"); } } } ``` ?> <title>Registration | </title>Sign Up
|
Sorry for the late reply, I've been busy with other projects. Kudos to "etiennelepagel" and "letens" for providing a fix. I have updated the script and it appears to be working correctly. However, I'm baffled as to why the script stopped functioning after working perfectly fine. I don't think I changed anything that would affect the register.php, yet it was broken after working perfectly fine. Strange. Also, if you take the time to create a patch for a bug, please commit the code to the codebase so I can quickly inspect and update the relevant files. For example, the "register.php" file can be updated via web browser using the link below: Please let me know if there are any further issues. |
Thank you all for taking the time to fix this. Mark |
Kudos, all! Now that this is working I'm tempted to retread the project I had intended to use this with, even though it's live in production & perfectly functional, this script would certainly allow me to make simpler and more elegant.. |
Hi,
Maybe its me but the registration process does not seem to validate.
I have tried and tested on at least 3 times from clean install.
If i click register with empty form i get success but no DB entry occurs so that's good
If i register and then use same details i get success but no DB entry occurs so that's good
But i really should get - that user exists or that email exists right?
Has anyone else encountered this?
great script btw.
John
The text was updated successfully, but these errors were encountered: