From 1354ae82ecc6638211bf4b1dcf7a130c7502478b Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 20 Apr 2015 13:23:13 -0700 Subject: [PATCH] fix session creation in new_customer_minimal, RT#34084 --- FS/FS/ClientAPI/Signup.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 174883a00..c1633284f 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -1043,7 +1043,7 @@ sub new_customer_minimal { my $session_id; do { - $session_id = sha1_hex(time(). {}. rand(). $$) + $session_id = sha512_hex(time(). {}. rand(). $$) } until ( ! defined _myaccount_cache->get($session_id) ); #just in case _cache->set( $session_id, $session, '1 hour' ); # 1 hour? -- 2.11.0