diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs
index edf606ee..db0d7b2b 100644
--- a/src/api/core/mod.rs
+++ b/src/api/core/mod.rs
@@ -160,15 +160,15 @@ fn hibp_breach(username: String) -> JsonResult {
} else {
Ok(Json(json!([{
"Name": "HaveIBeenPwned",
- "Title": "--- Error! ---",
+ "Title": "Manual HIBP Check",
"Domain": "haveibeenpwned.com",
"BreachDate": "2019-08-18T00:00:00Z",
"AddedDate": "2019-08-18T00:00:00Z",
- "Description": format!("HaveIBeenPwned API key not set!
Go to https://haveibeenpwned.com/API/Key
Or go to: https://haveibeenpwned.com/account/{account} for a manual check.", account=username),
- "LogoPath": "/bwrs_static/error-x.svg",
+ "Description": format!("Go to: https://haveibeenpwned.com/account/{account} for a manual check.
HaveIBeenPwned API key not set!
Go to https://haveibeenpwned.com/API/Key to purchase an API key from HaveIBeenPwned.
", account=username),
+ "LogoPath": "/bwrs_static/hibp.png",
"PwnCount": 0,
"DataClasses": [
- "Error - No API key"
+ "Error - No API key set!"
]
}])))
}
diff --git a/src/api/web.rs b/src/api/web.rs
index d80355e1..24847b9e 100644
--- a/src/api/web.rs
+++ b/src/api/web.rs
@@ -69,6 +69,7 @@ fn static_files(filename: String) -> Result, Error> {
"mail-github.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/mail-github.png"))),
"logo-gray.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/logo-gray.png"))),
"error-x.svg" => Ok(Content(ContentType::SVG, include_bytes!("../static/images/error-x.svg"))),
+ "hibp.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/hibp.png"))),
"bootstrap.css" => Ok(Content(ContentType::CSS, include_bytes!("../static/scripts/bootstrap.css"))),
"bootstrap-native-v4.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/bootstrap-native-v4.js"))),
diff --git a/src/static/images/hibp.png b/src/static/images/hibp.png
new file mode 100644
index 00000000..bf90bbf2
Binary files /dev/null and b/src/static/images/hibp.png differ