apicrud.auth.local_func¶
local_func
created 26-mar-2020 by richb@instantlinux.net
Functions
|
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
dict with error message, http status (200 if OK), account object
- Return type
tuple