Skip to content

Commit

Permalink
Adding token for /logout/
Browse files Browse the repository at this point in the history
  • Loading branch information
myvesta committed Sep 3, 2021
1 parent 5a69776 commit 9a746ea
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/templates/admin/list_search.html
Expand Up @@ -71,7 +71,7 @@
if ($value['USER'] != $user && $value['KEY'] == 'ACCOUNT') {
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/admin/list_server_info.html
Expand Up @@ -33,7 +33,7 @@
<!-- /.l-menu -->
<div class="l-profile">
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/admin/list_user.html
Expand Up @@ -94,7 +94,7 @@
<?
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/admin/list_weblog.html
Expand Up @@ -29,7 +29,7 @@
<!-- /.l-menu -->
<div class="l-profile">
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/admin/panel.html
Expand Up @@ -26,7 +26,7 @@
<div class="l-profile noselect">
<a class="l-profile__notifications <? if($panel[$user]['NOTIFICATIONS'] == 'yes') echo " updates"; ?>">&nbsp;</a>
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/user/list_search.html
Expand Up @@ -70,7 +70,7 @@
if ($value['USER'] != $user && $value['KEY'] == 'ACCOUNT') {
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/user/list_user.html
Expand Up @@ -89,7 +89,7 @@
<?
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/user/panel.html
Expand Up @@ -20,7 +20,7 @@
<div class="l-profile">
<a class="l-profile__notifications <? if($panel[$user]['NOTIFICATIONS'] == 'yes') echo " updates"; ?>">&nbsp;</a>
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><? if(($_SESSION['user'] == 'admin') && ($user != 'admin')) echo 'admin → ' ?><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
Expand Down

0 comments on commit 9a746ea

Please sign in to comment.