Loading...
 
Skip to main content

Failed registration attempt with user tracker and pretty tracker should not create new user

Status
Closed
Subject
Failed registration attempt with user tracker and pretty tracker should not create new user
Version
18.x
Category
  • Bug
Feature
User Administration (Registration, Login & Banning)
Resolution status
New
Submitted by
Jean-Marc Libs
Lastmod by
Jean-Marc Libs
Rating
(1)
Description

I set up a Tiki with User Registration with some required fields and using a pretty tracker.

When a user fills the registration form with no value in a mandatory field, the tracker item is not created and a failure message is displayed with the form so the user can try again. BUT the user is still created.
So, the next attempt will fail again because the user already exist 😑
Also, the admin will not get the email about a new user registration.

In this case, the user should not be created 😑

More info:
The issue is only when using pretty tracker templates.
When not using a template, the validation prevents from leaving the registration page, so the issue is not there.

So, a fix would be to make the validation work even when a template is being used for registration.

For reference, the template file ask-registration.tpl is:

Copy to clipboard
<div class="registration_form"> <div id="registration" class="panel panel-default"> <div class="panel-body"> <div class="form"> <label for="name" class="control-label titlefield">username</label> {$register_login} </div> <div class="form"> <label for="name" class="control-label titlefield">{tr}Email{/tr}</label> {$register_email} </div> <div class="form"> <label for="pass1" class="control-label">{tr}New Password{/tr}</label> {$register_pass} </div> <div class="form"> <label for="pass2" class="control-label">{tr}Confirm password{/tr}</label> {$register_pass2} </div> <div class="form"> <label for="ins_6" class="control-label titlefield">Not mandatory</label> {$f_1} </div> <div class="form"> <label for="ins_3" class="control-label titlefield">Mandatory field</label> {$f_3} </div> <div>{$register_antibot}</div> </div> </div> </div>
Solution

The real issue was, people could leave mandatory fields empty and click on save.
Victor fixed this, so that saving the form is forbidden unless all mandatory fields are filled.

Importance
7
Easy to solve?
2
Priority
14
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6670
Created
Thursday 24 May, 2018 20:18:51 UTC
by Jean-Marc Libs
LastModif
Friday 20 July, 2018 22:47:20 UTC


Show PHP error messages