mirror of
https://github.com/gogs/gogs.git
synced 2025-12-23 16:50:02 +01:00
As Golang supports getting usernames via the standard library, this function is now used to get the username if the environment variables are empty. Using the standard library as a fallback is intended to keep compability to existing implementations that rely on the environment variables dictating the current username.
1.1 KiB
1.1 KiB