mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
disabled browser login prompt in 401 responses
This commit is contained in:
@@ -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"},
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user