disabled browser login prompt in 401 responses

This commit is contained in:
zurdi
2023-08-18 10:44:01 +02:00
parent e02d87745b
commit 5c0b6ea692
2 changed files with 1 additions and 6 deletions

View File

@@ -4,11 +4,9 @@ from fastapi import HTTPException, status
credentials_exception = HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Basic"},
)
authentication_scheme_exception = HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Invalid authentication scheme",
headers={"WWW-Authenticate": "Basic"},
)

View File

@@ -40,10 +40,7 @@ function login() {
// POC FOR VALIDATING AND TESTING LOGIN PAGE
onBeforeMount(async () => {
// Check if romm auth is enabled
await axios.post("/api/login").then(() => {
router.push("/");
});
// TODO: Check if romm auth is enabled to redirect to the home dashboard
});
</script>