Added both templates for the New Device Logged In From email.
Added send_new_device_logged_in email function.
Moved logic of retrieving or creating device to get_device function (Is that ok?). When the device is new an email is sent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/dani-garcia/vaultwarden/pull/541
**Author:** [@vplme](https://github.com/vplme)
**Created:** 7/22/2019
**Status:** ✅ Merged
**Merged:** 7/30/2019
**Merged by:** [@dani-garcia](https://github.com/dani-garcia)
**Base:** `master` ← **Head:** `mail-new-device`
---
### 📝 Commits (3)
- [`bc6a53b`](https://github.com/dani-garcia/vaultwarden/commit/bc6a53b847a398191f221d8d98829d50b2505e53) Add new device email when user logs in
- [`60e39a9`](https://github.com/dani-garcia/vaultwarden/commit/60e39a9dd167959fdc6e474c4497853462d847f2) Move retrieve/new device from connData to separate function
- [`df71f57`](https://github.com/dani-garcia/vaultwarden/commit/df71f57d869d981d56697d255ad3e87630d3629e) Move send device email to end of password login
### 📊 Changes
**5 files changed** (+216 additions, -20 deletions)
<details>
<summary>View changed files</summary>
📝 `src/api/identity.rs` (+36 -19)
📝 `src/config.rs` (+1 -0)
📝 `src/mail.rs` (+21 -1)
➕ `src/static/templates/email/new_device_logged_in.hbs` (+14 -0)
➕ `src/static/templates/email/new_device_logged_in.html.hbs` (+144 -0)
</details>
### 📄 Description
- Added both templates for the New Device Logged In From email.
- Added `send_new_device_logged_in` email function.
- Moved logic of retrieving or creating device to `get_device` function (Is that ok?). When the device is new an email is sent.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/541
Author: @vplme
Created: 7/22/2019
Status: ✅ Merged
Merged: 7/30/2019
Merged by: @dani-garcia
Base:
master← Head:mail-new-device📝 Commits (3)
bc6a53bAdd new device email when user logs in60e39a9Move retrieve/new device from connData to separate functiondf71f57Move send device email to end of password login📊 Changes
5 files changed (+216 additions, -20 deletions)
View changed files
📝
src/api/identity.rs(+36 -19)📝
src/config.rs(+1 -0)📝
src/mail.rs(+21 -1)➕
src/static/templates/email/new_device_logged_in.hbs(+14 -0)➕
src/static/templates/email/new_device_logged_in.html.hbs(+144 -0)📄 Description
send_new_device_logged_inemail function.get_devicefunction (Is that ok?). When the device is new an email is sent.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.