Browse Source
Adds a FAILED_LOGIN_EMAIL_THRESHOLD setting (default 0 = disabled) that notifies a user by email once a number of consecutive wrong master password attempts is reached. Attempts are tracked in memory per user; a streak expires after an hour without attempts and is cleared on successful login, so a brute force run triggers at most one mail per streak. Requires SMTP to be configured.pull/7914/head
6 changed files with 104 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
Failed Login Attempts On Your Account |
|||
<!----------------> |
|||
There have been {{attempts}} consecutive failed login attempts on your account. |
|||
|
|||
* Date: {{datetime}} |
|||
* IP Address: {{ip}} |
|||
|
|||
If this was not you, someone may be trying to guess your master password. If you suspect your master password is compromised, change it in the web vault ( {{url}} ) and review your two-step login settings. |
|||
{{> email/email_footer_text }} |
|||
@ -0,0 +1,26 @@ |
|||
Failed Login Attempts On Your Account |
|||
<!----------------> |
|||
{{> email/email_header }} |
|||
<table width="100%" cellpadding="0" cellspacing="0" style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
There have been {{attempts}} consecutive failed login attempts on your account. |
|||
</td> |
|||
</tr> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
<b>Date:</b> {{datetime}} |
|||
</td> |
|||
</tr> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
<b>IP Address:</b> {{ip}} |
|||
</td> |
|||
</tr> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block last" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0; -webkit-text-size-adjust: none;" valign="top"> |
|||
If this was not you, someone may be trying to guess your master password. If you suspect your master password is compromised, change it in the <a href="{{url}}/">web vault</a> and review your two-step login settings. |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
{{> email/email_footer }} |
|||
Loading…
Reference in new issue