From 145a79710c5229fdeda4df662bd81f9721e1e808 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Wed, 4 Jan 2012 16:14:37 +0000 Subject: [PATCH] emailadresses to pacdomain are not allowed --- hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java index f0dc96c..81ee907 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java @@ -133,9 +133,9 @@ public class DomainModuleImpl extends AbstractModuleImpl { needsWriteAccessOn(newEntity, "add"); em.persist(dom); if (dom.isPacDomain()) { - em.persist(new EMailAddress("owner", "", dom, dom.getUser().getPac().getCustomer().getContractualContact().getEmail())); - em.persist(new EMailAddress("admin", "", dom, admin.getName())); - em.persist(new EMailAddress(dom.getUser().getPac().getName(), "", dom, admin.getName())); + em.persist(new EMailAddress("owner", "", dom, dom.getUser().getPac().getCustomer().getName().substring(6) + "@hostsharing.net")); + em.persist(new EMailAddress("admin", "", dom, dom.getUser().getPac().getName() + "@hostsharing.net")); + em.persist(new EMailAddress(dom.getUser().getPac().getName(), "", dom, dom.getUser().getPac().getName() + "@hostsharing.net")); } else { em.persist(new EMailAddress("abuse", "", dom, admin.getName())); em.persist(new EMailAddress("postmaster", "", dom, admin.getName()));