]> git.wh0rd.org Git - tt-rss.git/commitdiff
email article: change secretkey method
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 6 Nov 2010 19:39:39 +0000 (22:39 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 6 Nov 2010 19:39:39 +0000 (22:39 +0300)
modules/popup-dialog.php

index c37e392e6953cd3e3573718004e6539a982655fe..54f4a3e61a37e6dbf9af13868780bead63135317 100644 (file)
 
                        print "<form id=\"article_email_form\" onsubmit='return false'>";
 
-                       $secretkey = sha1(make_password(10));
+                       $secretkey = sha1(uniqid(rand(), true));
 
                        $_SESSION['email_secretkey'] = $secretkey;