Move retrieve/new device from connData to separate function

This commit is contained in:
vpl committed 2019-07-22 12:30:26 +02:00
1 parent bc6a53b847
commit 60e39a9dd1
2 files changed
+34 -38

No files matched your search

+1 -6
View File
@@ -137,12 +137,7 @@ pub fn send_invite_confirmed(address: &str, org_name: &str) -> EmptyResult {
send_email(&address, &subject, &body_html, &body_text)
}
pub fn send_new_device_logged_in(
address: &str,
ip: &str,
dt: &NaiveDateTime,
device: &str,
) -> EmptyResult {
pub fn send_new_device_logged_in(address: &str, ip: &str, dt: &NaiveDateTime, device: &str) -> EmptyResult {
use crate::util::upcase_first;
let device = upcase_first(device);