Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client OS username
#5
(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())
Reply


Messages In This Thread
Client OS username - by ImPyBoy17 - Sep-23-2019, 06:01 PM
RE: Client OS username - by ndc85430 - Sep-23-2019, 06:17 PM
RE: Client OS username - by Axel_Erfurt - Sep-23-2019, 06:50 PM
RE: Client OS username - by ndc85430 - Sep-23-2019, 06:55 PM
RE: Client OS username - by Malt - Sep-24-2019, 10:11 AM
RE: Client OS username - by buran - Sep-24-2019, 10:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  checking username newbexx 3 144 Yesterday, 11:42 AM
Last Post: Pedroski55
  Hiding username and password on sql tantony 10 3,302 Oct-21-2022, 07:58 PM
Last Post: wavic
  Pulling username from Tuple pajd 21 4,002 Oct-07-2022, 01:33 PM
Last Post: pajd
  Trying to create a conditional with a username Realen 2 1,920 Jun-20-2020, 12:44 AM
Last Post: Realen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020