mirror of
https://github.com/gogs/gogs.git
synced 2026-06-21 17:19:57 +02: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.