Loading...
 
Skip to main content

registration fails if "login_is_email" is set

Status
Closed
Subject
registration fails if "login_is_email" is set
Version
6.x
Category
  • Usability
Feature
User Administration (Registration, Login & Banning)
Resolution status
Invalid
Submitted by
thraxisp
Lastmod by
Ushindi Gedeon
Rating
(0)
Description
If you set the "login_is_user" flag, registration fails with the message "email_not_valid".
Solution

patch committed in r30507

Patch:


Index: /Users/thraxisp/Sites/tw6.x/lib/registration/registrationlib.php
=============


/Users/thraxisp/Sites/tw6.x/lib/registration/registrationlib.php (revision 30497) +++ /Users/thraxisp/Sites/tw6.x/lib/registration/registrationlib.php (working copy)

@@ -396,6 +396,11 @@




function register_new_user($registration, $from_intertiki=false) {
global $prefs, $tikilib;

+ // fix up email if login_is_email is set + if ($prefs'login_is_email' == 'y' && isset($registration'name')) { + $registration'email' = $registration'name'; + } +

$result=$this->local_check_registration($registration, $from_intertiki);
if ($result !== null) return $result;

Workaround
Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3623
Created
Wednesday 03 November, 2010 20:54:24 UTC
by thraxisp
LastModif
Tuesday 30 June, 2026 03:14:25 UTC


Show PHP error messages