From b79c5bac527dc5f93f1fab6e1d11daf27135403b Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Tue, 10 Nov 2015 10:55:40 -0500
Subject: [PATCH] New ISPConfig login.
---
interface/web/login/logout.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/interface/web/login/logout.php b/interface/web/login/logout.php
index 5092aeb..ee6fffa 100644
--- a/interface/web/login/logout.php
+++ b/interface/web/login/logout.php
@@ -50,12 +50,13 @@
'.str_replace('{UTYPE}', $utype, $wb['login_as_or_logout_txt']).'<br />
<div style="visibility:hidden">
<input type="text" name="username" value="' . $_SESSION['s_old']['user']['username'] . '" />
- <input type="password" name="passwort" value="' . $_SESSION['s_old']['user']['passwort'] .'" />
+ <input type="password" name="password" value="' . $_SESSION['s_old']['user']['passwort'] .'" />
</div>
<input type="hidden" name="s_mod" value="login" />
<input type="hidden" name="s_pg" value="index" />
+ <input type="hidden" name="login_as" value="1" />
<div class="wf_actions buttons">
- <button class="positive iconstxt icoPositive" type="button" value="Yes, re-login as ' . $utype . '" onclick="submitLoginForm(' . "'pageForm'" . ');"><span>Yes, re-login as ' . $utype . '</span></button>
+ <button class="positive iconstxt icoPositive" type="button" value="Yes, re-login as ' . $utype . '" data-submit-form="pageForm" data-form-action="/login/index.php"><span>Yes, re-login as ' . $utype . '</span></button>
<button class="negative iconstxt icoNegative" type="button" value="No, logout" data-load-content="login/logout.php?l=1"><span>No, logout</span></button>
</div>
';
--
Gitblit v1.9.1