mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
70 lines
2.1 KiB
Plaintext
70 lines
2.1 KiB
Plaintext
<%@ page class="UpdateUserPage" %>
|
|
<%@ page form="true" %>
|
|
<%@ page baseClass="SessionHTTPRequestHandler" %>
|
|
<%@ page ctorArg="Session*" %>
|
|
<%@ header include="SessionHTTPRequestHandler.h" %>
|
|
<%@ page compressed="true" %>
|
|
<%!
|
|
#include "../SingletonManager/SessionManager.h"
|
|
#include "Poco/Net/HTTPCookie.h"
|
|
#include "../model/Profiler.h"
|
|
%>
|
|
<%%
|
|
const char* pageName = "Update";
|
|
Profiler timeUsed;
|
|
auto user = mSession->getUser();
|
|
|
|
if(!form.empty()) {
|
|
auto pwd = form.get("update-password", "");
|
|
if(pwd != "") {
|
|
if(pwd != form.get("update-password", "")) {
|
|
session->addError(new Error("Passwort", "Passwörter sind nicht identisch."));
|
|
} else {
|
|
userReturned = session->getUser()->setNewPassword(
|
|
form.get("update-password")
|
|
);
|
|
}
|
|
}
|
|
}
|
|
%><%@ include file="header.cpsp" %>
|
|
<div class="grd_container">
|
|
<h1>Einen neuen Account anlegen</h1>
|
|
<% if(!form.empty()) {%>
|
|
<div class="grd_text-max-width">
|
|
<div class="grd_text">
|
|
..
|
|
</div>
|
|
</div>
|
|
<% } else { %>
|
|
<form method="POST">
|
|
|
|
<% if(!form.empty() && !userReturned) {%>
|
|
<%= session->getErrorsHtml() %>
|
|
<%} %>
|
|
<fieldset class="grd_container_small">
|
|
<legend>Account anlegen</legend>
|
|
<p>Bitte gebe deine Daten um einen Account anzulegen</p>
|
|
<p class="grd_small">
|
|
<label for="update-first-name">Vorname</label>
|
|
<input id="update-first-name" type="text" name="update-first-name" value="<%= !user ? user->getFirstName() : "" %>"/>
|
|
</p>
|
|
<p class="grd_small">
|
|
<label for="update-last-name">Nachname</label>
|
|
<input id="update-last-name" type="text" name="update-last-name" value="<%= !user ? user->getLastName() : "" %>"/>
|
|
</p>
|
|
<p class="grd_small">
|
|
<label for="update-password">Passwort</label>
|
|
<input id="update-password" type="password" name="update-password"/>
|
|
</p>
|
|
<p class="grd_small">
|
|
<label for="update-password">Passwort Bestätigung</label>
|
|
<input id="update-password2" type="password" name="update-password2"/>
|
|
</p>
|
|
</fieldset>
|
|
<input class="grd-form-bn grd-form-bn-succeed" type="submit" name="submit" value="Änderung(en) speichern">
|
|
|
|
</form>
|
|
<% } %>
|
|
</div>
|
|
<%@ include file="footer.cpsp" %>
|