Loading...
 
Skip to main content

User creation fails when use email as username is turned on

Status
Closed
Subject
User creation fails when use email as username is turned on
Version
4.x
Category
  • Error
Feature
User Administration (Registration, Login & Banning)
Resolution status
Fixed or Solved
Submitted by
kurt-hectic
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

When the feature "use email as username" is turned on, the user creation in the backend fails if "send email to user for validiation" is turned on.

To reproduce this, enable "use email as username" and try to create a new user in the admin-users menu. If "Send an email to the user in order to allow him to validate his account" is checked, the creation fails with a message "email validiation requested but email address not set".

The reason for this is that the html form does not contain an email field (since the email is used as username).

Solution

quick and dirty but worked for me. (tikiwiki 4.2)

tiki-adminusers.php : 157

Copy to clipboard
+ if ($prefs['login_is_email'] == 'y' ) { + $_REQUEST['email'] = $_REQUEST['name']; +}
Workaround
Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3072
Created
Wednesday 10 March, 2010 12:57:50 UTC
by kurt-hectic
LastModif
Monday 01 June, 2026 21:14:40 UTC


Show PHP error messages