Skip to content

Commit 0f00d16

Browse files
committed
delight-im/auth updated, required field added via db migration
1 parent da8c62d commit 0f00d16

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `users` ADD `force_logout` MEDIUMINT(7) NOT NULL DEFAULT '0' AFTER `last_login`;

app/pages/login.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444

4545
if ($_POST['action'] == "logout") {
4646
if ($auth->isLoggedIn()) {
47-
$auth->logOutAndDestroySession();
47+
$auth->logOut();
48+
$auth->destroySession();
4849
}
4950
forwartTo();
5051
}

app/templates/navigation.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575
</form>
7676
</div>
7777
<div class="bottom text-center">
78-
{if $navdata.showreg == true}
78+
{if isset($navdata.showreg)}{if $navdata.showreg == true}
7979
{'New here ?'|gettext} <a href="{$navdata.login.registerlink}"><b>{'Join Us'|gettext}</b></a>
80-
{/if}
80+
{/if}{/if}
8181
</div>
8282
</div>
8383
</li>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"require": {
1515
"smarty/smarty": "^4",
1616
"sergeytsalkov/meekrodb": "^2.4",
17-
"delight-im/auth": "^7.2",
17+
"delight-im/auth": "*",
1818
"phpmailer/phpmailer": "^6.0",
1919
"voku/anti-xss": "^3.1",
2020
"werx/validation": "^1.3",

0 commit comments

Comments
 (0)