@@ -282,7 +282,7 @@ public function emailNewLogin(array $user)
282
282
$ body ->set ('misp_org ' , Configure::read ('MISP.org ' ));
283
283
$ body ->set ('date_time ' , $ datetime );
284
284
// Fetch user that contains also PGP or S/MIME keys for e-mail encryption
285
- $ this ->User ->sendEmail ($ user , $ body , false , "[ " . Configure::read ('MISP.org ' ) . " MISP] New sign in. " );
285
+ $ this ->User ->sendEmail ($ user , $ body , false , "[ " . Configure::read ('MISP.org ' ) . " MISP] New sign-in " );
286
286
}
287
287
}
288
288
@@ -301,7 +301,7 @@ public function emailReportMalicious(array $user, array $userLoginProfile)
301
301
$ admins = array_keys ($ this ->User ->getSiteAdmins ());
302
302
$ allAdmins = array_unique (array_merge ($ orgAdmins , $ admins ));
303
303
304
- $ subject = __ ("[%s MISP] Suspicious login reported. " , Configure::read ('MISP.org ' ));
304
+ $ subject = __ ("[%s MISP] Suspicious login reported " , Configure::read ('MISP.org ' ));
305
305
foreach ($ allAdmins as $ adminUserId ) {
306
306
$ admin = $ this ->User ->find ('first ' , array (
307
307
'recursive ' => -1 ,
@@ -324,7 +324,7 @@ public function email_suspicious(array $user, $suspiciousness_reason)
324
324
$ body ->set ('date_time ' , $ date_time );
325
325
$ body ->set ('suspiciousness_reason ' , $ suspiciousness_reason );
326
326
// inform the user
327
- $ this ->User ->sendEmail ($ user , $ body , false , "[ " . Configure::read ('MISP.org ' ) . " MISP] Suspicious login with your account. " );
327
+ $ this ->User ->sendEmail ($ user , $ body , false , "[ " . Configure::read ('MISP.org ' ) . " MISP] Suspicious login with your account " );
328
328
329
329
// inform the org admin
330
330
$ body = new SendEmailTemplate ('userloginprofile_suspicious_orgadmin ' );
@@ -341,7 +341,7 @@ public function email_suspicious(array $user, $suspiciousness_reason)
341
341
'recursive ' => -1 ,
342
342
'conditions ' => ['User.id ' => $ orgAdminID ]
343
343
));
344
- $ this ->User ->sendEmail ($ org_admin , $ body , false , "[ " . Configure::read ('MISP.org ' ) . " MISP] Suspicious login detected. " );
344
+ $ this ->User ->sendEmail ($ org_admin , $ body , false , "[ " . Configure::read ('MISP.org ' ) . " MISP] Suspicious login detected " );
345
345
}
346
346
}
347
347
}
0 commit comments