Build [v1.5.0] - Box Management & Label Printing
This commit is contained in:
@@ -65,8 +65,9 @@ export default function LoginPage() {
|
||||
router.push('/');
|
||||
}, 500);
|
||||
|
||||
} catch (error) {
|
||||
toast.error(isEnterprise ? "Login failed. Check credentials or group membership." : "Invalid password");
|
||||
} catch (error: any) {
|
||||
const detail = error.response?.data?.detail || (isEnterprise ? "Login failed. Check credentials or group membership." : "Invalid password");
|
||||
toast.error(detail);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user