mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Fix issue with notices about non well formed numeric values
This commit is contained in:
parent
20da5d2f36
commit
74e69aa520
@ -78,7 +78,7 @@ class PasswordRecoveryController extends AbstractController
|
||||
if (count($page['errors']) == 0) {
|
||||
$token = sha1($to_restore['vclogin'] . (function_exists('openssl_random_pseudo_bytes')
|
||||
? openssl_random_pseudo_bytes(32)
|
||||
: (time() + microtime()) . mt_rand(0, 99999999)));
|
||||
: (time() + microtime(true)) . mt_rand(0, 99999999)));
|
||||
|
||||
// Update the operator
|
||||
$to_restore['dtmrestore'] = time();
|
||||
|
@ -67,6 +67,6 @@ function set_csrf_token()
|
||||
if (!isset($_SESSION[SESSION_PREFIX . 'csrf_token'])) {
|
||||
$_SESSION[SESSION_PREFIX . 'csrf_token'] = sha1(session_id() . (function_exists('openssl_random_pseudo_bytes')
|
||||
? openssl_random_pseudo_bytes(32)
|
||||
: (time() + microtime()) . mt_rand(0, 99999999)));
|
||||
: (time() + microtime(true)) . mt_rand(0, 99999999)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user