fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16346] ssn hash


From: sigurdne
Subject: [Fmsystem-commits] [16346] ssn hash
Date: Mon, 20 Feb 2017 02:53:18 -0500 (EST)

Revision: 16346
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16346
Author:   sigurdne
Date:     2017-02-20 02:53:18 -0500 (Mon, 20 Feb 2017)
Log Message:
-----------
ssn hash

Modified Paths:
--------------
    trunk/eventplannerfrontend/inc/class.hook_helper.inc.php
    trunk/phpgwapi/inc/auth/class.auth_customsso.inc.php

Modified: trunk/eventplannerfrontend/inc/class.hook_helper.inc.php
===================================================================
--- trunk/eventplannerfrontend/inc/class.hook_helper.inc.php    2017-02-19 
21:44:51 UTC (rev 16345)
+++ trunk/eventplannerfrontend/inc/class.hook_helper.inc.php    2017-02-20 
07:53:18 UTC (rev 16346)
@@ -211,8 +211,8 @@
                                return;
                        }
 
-                       $auth   = createObject('phpgwapi.auth');
-                       $ssn_hash = $auth->create_hash($ssn);
+                       $ssn_hash = "{SHA}" . 
base64_encode(phpgwapi_common::hex2bin(sha1($ssn)));
+
                        $hash_safe = 
$GLOBALS['phpgw']->db->db_addslashes($ssn_hash); // just to be safe :)
 
                        $data = json_encode(array('ssn_hash' => $hash_safe));

Modified: trunk/phpgwapi/inc/auth/class.auth_customsso.inc.php
===================================================================
--- trunk/phpgwapi/inc/auth/class.auth_customsso.inc.php        2017-02-19 
21:44:51 UTC (rev 16345)
+++ trunk/phpgwapi/inc/auth/class.auth_customsso.inc.php        2017-02-20 
07:53:18 UTC (rev 16346)
@@ -83,7 +83,8 @@
                                return;
                        }
 
-                       $ssn_hash = $this->create_hash($ssn);
+                       $ssn_hash = "{SHA}" . 
base64_encode(phpgwapi_common::hex2bin(sha1($ssn)));
+
                        $hash_safe = 
$GLOBALS['phpgw']->db->db_addslashes($ssn_hash); // just to be safe :)
                        $sql = "SELECT account_lid FROM phpgw_accounts"
                                . " JOIN phpgw_accounts_data ON 
phpgw_accounts.account_id = phpgw_accounts_data.account_id"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]