minimum username length

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
karlh626
Posts: 5
Joined: Wed Jan 02, 2008 2:57 pm

minimum username length

Post by karlh626 »

Is it possible to change the minimum length of usernames?

I would like to be able to use 3 letter usernames (initials).

TIA

Karl
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Sure, if you edit this file:
classes/modules/users/UserFactory.class.php

Then find the following block of code around line 300:

Code: Select all

						$this->Validator->isLength(		'user_name',
														$user_name,
														TTi18n::gettext('Incorrect user name length'),
														4,
														250)

Change the "4" to a "3".
karlh626
Posts: 5
Joined: Wed Jan 02, 2008 2:57 pm

Post by karlh626 »

Thank you - that worked perfectly.
Post Reply