Seiteninhalt
<%@ page
isELIgnored="false"
import="de.cmsbs.connector.*"
buffer="16kb"
%>
<%
if (!wum.ping()) {
%>
<%
}
%>
<%
if (wum.hasParam("doLogin")) {
wum.makeMandatory("login", "Pflichtfeld");
wum.makeMandatory("password", "Pflichtfeld");
try {
if (!wum.errors().hasSome()) {
Entry e = wum.um().getEntryByEmail(wum.getParam("login"));
if (e == null || !e.login(wum.getParam("password"))) {
wum.errors().addHtml(null, "Sorry, wrong password", null, true);
} else {
wum.setSessionEntry(e);
wum.success();
}
}
} catch (Exception e) {
wum.errors().add(e);
}
}
if (wum.hasSuccess()) {
%>
<%
} else {
if (wum.errors().hasSome()) {
for (wum.errors().iteratePageErrors(); wum.errors().doNext();) {
%>
<%
}
%>
<%
}
%>
<%
}
%>