]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - index.php
v0.2.1
[github/wallabag/wallabag.git] / index.php
index f64a04187fd50563e85cecf2b174d23eb1482535..829d5513542789bf4c220cb457ca22f0f12bb166 100644 (file)
--- a/index.php
+++ b/index.php
@@ -10,9 +10,8 @@
 
 include dirname(__FILE__).'/inc/config.php';
 
-# initialize session
 myTool::initPhp();
-Session::init();
+
 # XSRF protection with token
 if (!empty($_POST)) {
     if (!Session::isToken($_POST['token'])) {
@@ -28,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'];