vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 07743e490b74f83d0d4af6d5f1e57f404fd3fcaf
parent 9101d6e48fc3dd92b22569c77dcc6027dfbe9812
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sun, 18 Aug 2019 19:32:26 +0200

Ignore error sending device email

Diffstat:
Msrc/api/identity.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/api/identity.rs b/src/api/identity.rs @@ -106,7 +106,9 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult let twofactor_token = twofactor_auth(&user.uuid, &data, &mut device, &conn)?; if CONFIG.mail_enabled() && new_device { - mail::send_new_device_logged_in(&user.email, &ip.ip.to_string(), &device.updated_at, &device.name)? + if let Err(e) = mail::send_new_device_logged_in(&user.email, &ip.ip.to_string(), &device.updated_at, &device.name) { + error!("Error sending new device email: {:#?}", e); + } } // Common