mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
simplify
This commit is contained in:
@ -74,15 +74,13 @@ export const doBasicLogin = async (
|
|||||||
clearCsrfCookie();
|
clearCsrfCookie();
|
||||||
await ensureCsrf();
|
await ensureCsrf();
|
||||||
|
|
||||||
const login_url = apiUrl(ApiEndpoints.auth_login);
|
|
||||||
|
|
||||||
let loginDone = false;
|
let loginDone = false;
|
||||||
let success = false;
|
let success = false;
|
||||||
|
|
||||||
// Attempt login with
|
// Attempt login with
|
||||||
await api
|
await api
|
||||||
.post(
|
.post(
|
||||||
login_url,
|
apiUrl(ApiEndpoints.auth_login),
|
||||||
{
|
{
|
||||||
username: username,
|
username: username,
|
||||||
password: password
|
password: password
|
||||||
|
Reference in New Issue
Block a user