mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
oop forgot the user form bit
This commit is contained in:
parent
008b6f1db2
commit
d1cd670af5
|
@ -626,6 +626,8 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
$username = str_slug(substr($first_name, 0, 1).'.'.str_slug($last_name));
|
||||
} elseif ($format == 'lastname_firstinitial') {
|
||||
$username = str_slug($last_name).'_'.str_slug(substr($first_name, 0, 1));
|
||||
} elseif ($format == 'lastname.firstinitial') {
|
||||
$username = str_slug($last_name).'.'.str_slug(substr($first_name, 0, 1));
|
||||
} elseif ($format == 'firstnamelastname') {
|
||||
$username = str_slug($first_name).str_slug($last_name);
|
||||
} elseif ($format == 'firstnamelastinitial') {
|
||||
|
|
Loading…
Reference in a new issue