Open ahmudimam opened 1 year ago
If you provided 'username' during user creation, that username will be assigned only if the user is 'admin' or 'super admin' (members of teamSA). Otherwise, the user will be assigned with a unique user id like the one you provided (STAFF/2023/08/1234).
Check the code change in the attachment if you want to make change so that your username will apply to every user. File path: 'app\Http\Controllers\SupportTeam\UserController.php' find method 'store', and then change the codes as seen in the attachment.
username changes from what you provide to it during user creation. For Example: I provided username of Accountant as alihmza , it will change to STAFF/2023/08/1234