mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Do not send duplicated emails on bugs.
This commit is contained in:
parent
645402e691
commit
c8d3d99224
@ -19,10 +19,12 @@ public class NotifierFilter {
|
|||||||
|
|
||||||
final StringBuilder buff = new StringBuilder();
|
final StringBuilder buff = new StringBuilder();
|
||||||
for (String key : model.keySet()) {
|
for (String key : model.keySet()) {
|
||||||
|
if (!key.equals("mapXML")) {
|
||||||
buff.append(key);
|
buff.append(key);
|
||||||
buff.append("=");
|
buff.append("=");
|
||||||
buff.append(model.get(key));
|
buff.append(model.get(key));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final String digest = DigestUtils.md5DigestAsHex(buff.toString().getBytes());
|
final String digest = DigestUtils.md5DigestAsHex(buff.toString().getBytes());
|
||||||
boolean result = emailByMd5.containsKey(digest);
|
boolean result = emailByMd5.containsKey(digest);
|
||||||
|
@ -102,7 +102,7 @@ public class AccountController extends BaseController {
|
|||||||
|
|
||||||
@RequestMapping(method = RequestMethod.POST, value = "logger/editor", consumes = {"application/xml", "application/json"}, produces = {"application/json", "text/html", "application/xml"})
|
@RequestMapping(method = RequestMethod.POST, value = "logger/editor", consumes = {"application/xml", "application/json"}, produces = {"application/json", "text/html", "application/xml"})
|
||||||
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
||||||
public void changePassword(@RequestBody RestLogItem item, @NotNull HttpServletRequest request) {
|
public void logError(@RequestBody RestLogItem item, @NotNull HttpServletRequest request) {
|
||||||
final Mindmap mindmap = mindmapService.findMindmapById(item.getMapId());
|
final Mindmap mindmap = mindmapService.findMindmapById(item.getMapId());
|
||||||
final User user = Utils.getUser();
|
final User user = Utils.getUser();
|
||||||
logger.error("Unexpected editor error - " + item.getJsErrorMsg());
|
logger.error("Unexpected editor error - " + item.getJsErrorMsg());
|
||||||
|
Loading…
Reference in New Issue
Block a user