Sep-24-2019, 10:11 AM
(Sep-23-2019, 06:01 PM)ImPyBoy17 Wrote: Hi All,
I have a flask application, would like to fetch the OS username by default for creating a registration portal. I don’t want the users to provide username as Input.
Please let me know how can we grab this value !?
OS username, you mean? Login username?
If yes, we can grep them using
import os print(os.getlogin())