[PR #541] [MERGED] Add "New Device Logged In From" email #23625

Closed
opened 2026-05-22 00:30:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: masterHead: mail-new-device


📝 Commits (3)

  • bc6a53b Add new device email when user logs in
  • 60e39a9 Move retrieve/new device from connData to separate function
  • df71f57 Move 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

  • 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>
GiteaMirror added the pull-request label 2026-05-22 00:30:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#23625