]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_sql_patches.php
More fixes for admin login and to early call of isAdmin()
[mailer.git] / inc / gen_sql_patches.php
index a358c8d74a31730107d78eb09ce915688c3d742c..4baf15fa48f0eb3f962e7c80bcfc7f402a279a1e 100644 (file)
@@ -77,11 +77,8 @@ if (getConfig('file_hash') == '') {
                $fileHash
        );
 
                $fileHash
        );
 
-       // Count of chars to be taken from back of the string
-       $nums = mt_rand(40, 45);
-
        // Generate secret key from a randomized string
        // Generate secret key from a randomized string
-       $secretKey = substr(sha1(generatePassword(mt_rand(128, 256))), -$nums);
+       $secretKey = sha1(generateHash(mt_rand(128, 256)));
 
        // File hash was never created
        writeToFile($FQFN, $secretKey);
 
        // File hash was never created
        writeToFile($FQFN, $secretKey);