login action always goes to index.php

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2021-08-25 16:30:56 +02:00
parent 4b22470872
commit 5d375b784d
4 changed files with 3 additions and 44 deletions

View File

@@ -10,7 +10,7 @@ $header
</div>
</if>
<section class="loginsec">
<form method="post" action="$filename" enctype="application/x-www-form-urlencoded">
<form method="post" action="index.php" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['login']['presend']}</legend>
<p>

View File

@@ -25,7 +25,7 @@ $header
</if>
<section class="loginsec">
<form method="post" action="$filename" enctype="application/x-www-form-urlencoded">
<form method="post" action="index.php" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="script" value="{$lastscript}" />
<input type="hidden" name="qrystr" value="{$lastqrystr}" />
<fieldset>

View File

@@ -1,41 +0,0 @@
<article class="login bradius">
<header class="dark">
<img src="{$header_logo_login}" alt="{t}Froxlor Server Management Panel{/t}" />
</header>
{if isset($successmessage)}
<div class="successcontainer bradius">
<div class="successtitle">{t}Success{/t}</div>
<div class="success">{$successmessage}</div>
</div>
{/if}
{if isset($errormessage)}
<div class="errorcontainer bradius">
<div class="errortitle">{t}Error{/t}</div>
<div class="error">{$errormessage}</div>
</div>
{/if}
<section class="loginsec">
<form method="post" action="webftp.php" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>{t}Froxlor - WebFTP - Login{/t}</legend>
<p>
<label for="loginname">{t}Username{/t}:</label>&nbsp;
<input type="text" name="loginname" id="loginname" value="" required/>
</p>
<p>
<label for="password">{t}Password{/t}:</label>&nbsp;
<input type="password" name="password" id="password" required/>
</p>
<p class="submit">
<input type="hidden" name="send" value="send" />
<input type="submit" value="{t}Login{/t}" />
</p>
</fieldset>
</form>
<aside>&nbsp;</aside>
</section>
</article>

View File

@@ -11,7 +11,7 @@ $header
</if>
<section class="loginsec">
<h3>{$lng['pwdreminder']['choosenew']}</h3>
<form method="post" action="{$filename}?action=resetpwd&resetcode={$activationcode}" enctype="application/x-www-form-urlencoded">
<form method="post" action="index.php?action=resetpwd&resetcode={$activationcode}" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['login']['presend']}</legend>
<p>