Using user.name is not secure as environment variables can be faked. Method you were using is good, there are similar methods for unix based OS as well
phoenix
- 119
- 1
- 2
Using user.name is not secure as environment variables can be faked. Method you were using is good, there are similar methods for unix based OS as well