1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

message de bienvenue

This commit is contained in:
nicosomb 2013-04-23 08:07:47 +02:00
parent 2761de0184
commit 88958248fa
3 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ if (isset($_GET['login'])) {
if (!empty($_POST['login']) && !empty($_POST['password'])) {
if (Session::login('poche', 'poche', $_POST['login'], $_POST['password'])) {
logm('login successful');
$msg->add('s', 'welcome in your pocket!');
if (!empty($_POST['longlastingsession'])) {
$_SESSION['longlastingsession'] = 31536000;
$_SESSION['expires_on'] = time() + $_SESSION['longlastingsession'];