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
  AttributeError: '_tkinter.tkapp' object has no attribute 'username' Konstantin23 4 1,882 Aug-04-2023, 12:41 PM
Last Post: Konstantin23
  Hiding username and password on sql tantony 10 3,068 Oct-21-2022, 07:58 PM
Last Post: wavic
  Pulling username from Tuple pajd 21 3,646 Oct-07-2022, 01:33 PM
Last Post: pajd
  Trying to create a conditional with a username Realen 2 1,870 Jun-20-2020, 12:44 AM
Last Post: Realen
  creating a username and pword program using a #def statement and #dictionary zcode12 3 3,197 Oct-14-2018, 04:41 AM
Last Post: volcano63

Forum Jump:

User Panel Messages

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