MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_user

Method get_user

web/setup.py:582–591  ·  view source on GitHub ↗
(username=None, auth_source=INTERNAL)

Source from the content-addressed store, hash-verified

580 print(SOMETHING_WENT_WRONG + str(msg))
581
582 def get_user(username=None, auth_source=INTERNAL):
583 app = create_app(config.APP_NAME + '-cli')
584 usr = None
585 with app.test_request_context():
586 usr = User.query.filter_by(username=username,
587 auth_source=auth_source).first()
588
589 if not usr:
590 return None
591 return usr.id
592
593 def display_user(data, _console, _json):
594 if _console:

Callers 5

delete_userMethod · 0.45
update_userMethod · 0.45
update_external_userMethod · 0.45
create_userMethod · 0.45
set_prefsMethod · 0.45

Calls 2

create_appFunction · 0.90
firstMethod · 0.65

Tested by

no test coverage detected