mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 08:09:59 +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.9 KiB
1.9 KiB