Authentication: Remove cancel link from username template (form is always displayed first, if needed).
This commit is contained in:
parent
aa7def54a6
commit
a7ecdf72f8
|
|
@ -99,10 +99,6 @@ class plugin_email {
|
||||||
$view->assign("login_logo_height", $settings['theme']['login_logo_height']);
|
$view->assign("login_logo_height", $settings['theme']['login_logo_height']);
|
||||||
$view->assign("login_logo_source", $settings['theme']['logo']);
|
$view->assign("login_logo_source", $settings['theme']['logo']);
|
||||||
$view->assign("button_login", $text['button-login']);
|
$view->assign("button_login", $text['button-login']);
|
||||||
if (!empty($_SESSION['username'])) {
|
|
||||||
$view->assign("username", $_SESSION['username']);
|
|
||||||
$view->assign("button_cancel", $text['button-cancel']);
|
|
||||||
}
|
|
||||||
|
|
||||||
//show the views
|
//show the views
|
||||||
$content = $view->render('username.htm');
|
$content = $view->render('username.htm');
|
||||||
|
|
|
||||||
|
|
@ -106,10 +106,6 @@ class plugin_totp {
|
||||||
$view->assign("login_logo_source", $settings['theme']['logo']);
|
$view->assign("login_logo_source", $settings['theme']['logo']);
|
||||||
$view->assign("button_login", $text['button-login']);
|
$view->assign("button_login", $text['button-login']);
|
||||||
$view->assign("favicon", $settings['theme']['favicon']);
|
$view->assign("favicon", $settings['theme']['favicon']);
|
||||||
if (!empty($_SESSION['username'])) {
|
|
||||||
$view->assign("username", $_SESSION['username']);
|
|
||||||
$view->assign("button_cancel", $text['button-cancel']);
|
|
||||||
}
|
|
||||||
|
|
||||||
//show the views
|
//show the views
|
||||||
$content = $view->render('username.htm');
|
$content = $view->render('username.htm');
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type='submit' id='btn_login' class='btn' style='width: 100px; margin-top: 15px;' value='{$button_login}' />
|
<input type='submit' id='btn_login' class='btn' style='width: 100px; margin-top: 15px;' value='{$button_login}' />
|
||||||
{if !empty($username)}
|
|
||||||
<br /><br />
|
|
||||||
<a class='login_link' href='{$project_path}/logout.php'>{$button_cancel}</a>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue