From: Ivan Kohler Date: Mon, 20 Apr 2015 20:23:15 +0000 (-0700) Subject: fix session creation in new_customer_minimal, RT#34084 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=43c24ae41069a9b5bbbbb508263687869f1cefd3 fix session creation in new_customer_minimal, RT#34084 --- diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 6bc13075f..502b6db08 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -1052,7 +1052,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?