Loading...
 

Admin Log-in, When using "Use email as username" the username related settings shouldn't be applied

Status
Closed
Subject
Admin Log-in, When using "Use email as username" the username related settings shouldn't be applied
Version
23.x
Category
  • Conflict of two features (each works well independently)
  • Developer Training
  • Bug
  • Easy for Newbie Dev
Feature
User Administration (Registration, Login & Banning)
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Adrien
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

At tiki-admin.php?page=login , Username, when I enable "Use email as username" some username settings are now hidden (meaning not in use) but they are still applied.

Minimum length
Maximum length
(And may be "Force lowercase")

I created an instance to test and reproduce.
You need to "really" register a user, not using the admin user to create new users.

How to reproduce :

  1. Go to Admin, Control Panels and switch to "Advanced" (to see advanced preferences)
  2. Go to log-in : tiki-admin.php?page=login, Registration & Log in
  3. Enable : Users can register
  4. Disable : Validate new user registrations by email (we don't want to validate email)
  5. Go to : Username and set "Maximum length" to 6
  6. Apply (save)
  7. Use a different browser (check you are not logged), go to the Tiki and register a new user
  8. Try to input more than 6 characters for the username, you will see this error:
    Screen Shot 2021 12 26 At 11.27.02
  9. Go back to your previous browser (logged as admin), log-in : tiki-admin.php?page=login, Username
  10. Enable "Use email as username" option
    The parameters Minimum length, Maximum length, (And may be "Force lowercase") will be hidden has not relevant anymore.
  11. Go back to your different browser (check you are not logged)
  12. Create a new user with an email for login (obviously longer than 6 characters).
    You won't see an error on focus
  13. Submit your registration and you will see the error:
    Screen Shot 2021 12 26 At 11.32.42


The difference of treatment in the process make me think there is some wrong additional condition that should be cancelled if "Use email as username" is enable.

Solution

In general, when a parent is disabled, children options and parameters should be kept but not applied.
This is critical when children parameters are hidden (accordion).

In this case, if I disabled "Use email as username", the parameters Minimum length, Maximum length
(And may be "Force lowercase") should not be applied (but kept).

Importance
5
Easy to solve?
7
Priority
35
Demonstrate Bug (Tiki 19+)
This bug has been demonstrated on show2.tiki.org
 Accessing the Tiki instance that demonstrates this bug

The URL for the show2.tiki.org instance that demonstrates this bug is at: http://bsfez-11581-8001.show2.tiki.org. Note that if you get a popup asking for a username/password, please just enter "show" and "show". This is different from the initial login and password for a new Tiki which is "admin" and "admin".

For the install log, see http://bsfez-11581-8001.show2.tiki.org/info.txt

Note that if you see PHP errors or a Tiki claiming to be missing third party software, the instance creation is probably not finished. Please wait a couple minutes and reload.

 Snapshots

Snapshots are database dumps of the configuration that developers can download for debugging. Once you have reproduced your bug on the show2.tiki.org instance, create a snapshot that can then be downloaded by developers for further investigation.

Snapshots can be accessed at: http://bsfez-11581-8001.show2.tiki.org/snapshots/. Note that if you get a popup asking for a username/password, please just enter "show" and "show".

Create new snapshot
SVN update
Demonstrate Bug (older Tiki versions)
Please demonstrate your bug on show.tikiwiki.org
 About show.tikiwiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.

Version: Create show.tikiwiki.org instance
Ticket ID
8001
Created
Wednesday 22 December, 2021 08:13:42 GMT-0000
by Bernard Sfez / Tiki Specialist
LastModif
Saturday 15 January, 2022 10:11:22 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools