MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / get_username

Function get_username

app/session.py:148–154  ·  view source on GitHub ↗

Returns the username of the currently logged-in user. Returns: A username as a string or None if there is no logged-in user.

()

Source from the content-addressed store, hash-verified

146
147
148def get_username():
149 """Returns the username of the currently logged-in user.
150
151 Returns:
152 A username as a string or None if there is no logged-in user.
153 """
154 return flask.session.get('username')

Callers 1

is_auth_validFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected