Compare commits
No commits in common. "d711bc6152d6b1199054752843bbd736e6411880" and "6852923db06e00d2d8a5b636de55f82227a1370a" have entirely different histories.
d711bc6152
...
6852923db0
@ -28,21 +28,7 @@ class AuthController
|
||||
'validData' => $_SESSION['auth_validData'] ?? []
|
||||
]);
|
||||
unset($_SESSION['auth_errors'], $_SESSION['auth_validData']);
|
||||
}
|
||||
|
||||
public function showRegistrationForm()
|
||||
{
|
||||
$this->view->setVars([
|
||||
'labels' => [
|
||||
"email" => "E-Mail-Adresse",
|
||||
"password" => "Passwort",
|
||||
"password_repeat" => "Passwort wiederholen",
|
||||
"old_password" => "Altes Passwort"
|
||||
],
|
||||
'errors' => $_SESSION['auth_errors'] ?? [],
|
||||
'validData' => $_SESSION['auth_validData'] ?? []
|
||||
]);
|
||||
unset($_SESSION['auth_errors'], $_SESSION['auth_validData']);
|
||||
$this->view->render('auth/form');
|
||||
}
|
||||
|
||||
public function login() {
|
||||
|
@ -28,9 +28,6 @@ include dirname(__DIR__).'/header.phtml';
|
||||
</div>
|
||||
<button class="login-btn" type="submit">Einloggen</button>
|
||||
</form>
|
||||
<div style="text-align:center; margin-top: 1.5em;">
|
||||
<a href="?controller=Auth&do=register" class="login-link">Konto erstellen</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -58,8 +58,4 @@
|
||||
<button type="submit">Registrieren</button>
|
||||
</form>
|
||||
|
||||
<div style="text-align:center; margin-top: 1.5em;">
|
||||
<a href="?controller=Auth&do=showAuthForm" class="login-link">Bereits registriert? Hier einloggen</a>
|
||||
</div>
|
||||
|
||||
<?php include dirname(__DIR__).'/footer.phtml'; ?>
|
@ -17,7 +17,7 @@ include dirname(__DIR__) . '/header.phtml';
|
||||
</form>
|
||||
<button class="button-loggin">Login</button>
|
||||
<a class="link-passwort-vergessen">Passwort vergessen?</a>
|
||||
<a class="link-konto-erstellen" href="?controller=Auth&do=showRegistrationForm">Konto erstellen</a>
|
||||
<a class="link-konto-erstellen">Konto erstellen</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -60,8 +60,7 @@ include dirname(__DIR__) . '/header.phtml';
|
||||
</label>
|
||||
</form>
|
||||
<button class="button-register">Registrieren</button>
|
||||
<div style="text-align:center; margin-top: 1.5em;">
|
||||
<a href="?controller=Auth&do=showAuthForm" class="login-link">Bereits registriert? Hier einloggen</a>
|
||||
<a class="link-konto-erstellen">Login</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
Loading…
x
Reference in New Issue
Block a user