apicrud.auth.local_func

local_func

created 26-mar-2020 by richb@instantlinux.net

Functions

login(username, password)

Login using credentials stored in local database.

apicrud.auth.local_func.login(username, password)

Login using credentials stored in local database. If successful, this passes a sqlalchemy account record back for further processing by SessionAuth.login_accepted.

Parameters:
  • username (str) – the username or email identity

  • password (str) – password

Returns:

3 items

dict with error message http status (200 if OK) account (sqlalchemy query object)

Return type:

tuple