Skip to content

Commit 4960248

Browse files
committed
Updated readme, removed test code
1 parent f305149 commit 4960248

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,9 @@ Notifies users when their details have been in a data breach based on the HIBP A
8787
| `{{previous_breaches_text}}` | The text that is shown before the list of previous breaches | `Your account has also been in previous, older breaches. You can find a complete list below.` | config.json |
8888
| `{{username}}` | The email of the user that was in the breach | `user@domain.com` | HIBP API |
8989
| `{{new_breach_rows}}` | The list of new breaches that the user was in | `<tr><td>BreachA</td><td>Link to BreachA</td></tr>` | HIBP API |
90-
| `{{previous_breaches_rows}}` | The list of previous breaches that the user was in | `<tr><td>BreachA</td><td>Link to BreachA</td></tr>` | HIBP API |
90+
| `{{previous_breaches_rows}}` | The list of previous breaches that the user was in | `<tr><td>BreachA</td><td>Link to BreachA</td></tr>` | HIBP API |
91+
92+
## Default email image
93+
This is the default image. You can change it by replacing the email_template.html with your own version.
94+
95+
![Email Image](./image.png)

main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ func main() {
123123
emailBody = strings.ReplaceAll(emailBody, "{{previous_breaches_text}}", previousBreachesText)
124124

125125
for user, breaches := range notifyUsers {
126-
if user != "lars@scheibling.se" {
127-
continue
128-
}
129126
body := string(emailBody)
130127

131128
newBreachRows := ""

0 commit comments

Comments
 (0)