fix: Creating users with same e-mail address doesn't work

This commit is contained in:
Doug Bell 2007-02-16 16:53:50 +00:00
parent 7a4a0be5d4
commit efb0109465
4 changed files with 64 additions and 3 deletions

View file

@ -8,6 +8,7 @@
earlier than 7.3.8.
- fix: Rich Text Editor - Add Asset Tree Link doesn't work with images
- fix: Calendar Next / Previous when startTime was involved (Jukka Raimovaara / Axxion Oy)
- fix: Creating users with same e-mail address doesn't work.
7.3.9
- fix: SQL Form and big table imports

View file

@ -0,0 +1,59 @@
#PBtmpl0000000000000011
<h2><tmpl_var title></h2>
<tmpl_if create.message>
<tmpl_var create.message>
</tmpl_if>
<tmpl_var create.form.header>
<tmpl_var create.form.hidden>
<table >
<tr>
<td class="formDescription" valign="top"><tmpl_var create.form.username.label></td>
<td class="tableData"><tmpl_var create.form.username></td>
</tr>
<tr>
<td class="formDescription" valign="top"><tmpl_var create.form.password.label></td>
<td class="tableData"><tmpl_var create.form.password></td>
</tr>
<tr>
<td class="formDescription" valign="top"><tmpl_var create.form.passwordConfirm.label></td>
<td class="tableData"><tmpl_var create.form.passwordConfirm></td>
</tr>
<tmpl_loop create.form.profile>
<tr>
<td class="formDescription" valign="top"><tmpl_var profile.formElement.label></td>
<td class="tableData"><tmpl_var profile.formElement></td>
</tr>
</tmpl_loop>
<tmpl_if useCaptcha>
<tr>
<td class="formDescription" valign="top"><tmpl_var create.form.captcha.label></td>
<td class="tableData"><tmpl_var create.form.captcha></td>
</tr>
</tmpl_if>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td class="submitData" colspan="2"><tmpl_var create.form.submit></td>
</tr>
</table>
<tmpl_var create.form.footer>
<div class="accountOptions">
<ul>
<li><a href="<tmpl_var login.url>"><tmpl_var login.label></a></li>
<tmpl_if recoverPassword.isAllowed>
<li><a href="<tmpl_var recoverPassword.url>"><tmpl_var recoverPassword.label></a></li>
</tmpl_if>
</ul>
</div>
~~~
<style type="text/css">
.submitData {
text-align:right;
border-top:solid gray 1px;
}
</style>

View file

@ -190,8 +190,8 @@ sub createAccountSave {
$error .= $temp;
return $self->createAccount($error) unless ($error eq "");
#If Email address is not unique, a warning is displayed
if($warning ne "" && !$self->session->form->process("confirm")){
# If Email address is not unique, a warning is displayed
if ($warning ne "" && !$self->session->form->process("confirm")) {
return $self->createAccount('<li>'.$i18n->get(1078).'</li>', 1);
}

View file

@ -2509,7 +2509,8 @@ div.tabs {
},
'1078' => {
message => q|There is already a user of this system with the email address you've entered. Press "Save" if you still wish to create this user|,
message => q|There is already a user of this system with the email address you've entered.
Please re-complete the form and press "Save" if you still wish to create this user|,
lastUpdated => 1067951807
},