setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
238 stars 52 forks source link

Updated loggedInUserFirstname #94

Closed Eltord closed 10 months ago

Eltord commented 10 months ago

Added a check to account for if the loggedInUser returns in all caps, as this sometimes happens with SSO Attributes.

Previously, if the name was in all caps, it stayed that way when presenting the dialog to the user:
 Screenshot 2023-07-19 at 12 33 06 PM

With the added check in the loggedInUserFirstname, it now looks to see if the name is in all caps and corrects the case, while also still working for other cases:
 Screenshot 2023-07-19 at 12 34 55 PM

dan-snelson commented 10 months ago

Thanks, @Eltord!