Subversion Repositories oidplus

Rev

Rev 1102 | Rev 1119 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1102 Rev 1116
Line 16... Line 16...
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
20
use ViaThinkSoft\OIDplus\OIDplusDatabaseConnection;
20
use ViaThinkSoft\OIDplus\OIDplusDatabaseConnection;
-
 
21
use ViaThinkSoft\OIDplus\OIDplusException;
21
 
22
 
22
/**
23
/**
23
 * This function is internally called by oidplus_dbupdate_1002().
24
 * This function is internally called by oidplus_dbupdate_1002().
24
 * It changes the auth keys A1*# and A2# to VTS-MCF and A3# to BCrypt-MCF.
25
 * It changes the auth keys A1*# and A2# to VTS-MCF and A3# to BCrypt-MCF.
25
 * @param OIDplusDatabaseConnection $db is the OIDplusDatabaseConnection class
26
 * @param OIDplusDatabaseConnection $db is the OIDplusDatabaseConnection class
-
 
27
 * @throws OIDplusException
26
 */
28
 */
27
function oidplus_dbupdate_1002_migrate_ra_passwords(OIDplusDatabaseConnection $db) {
29
function oidplus_dbupdate_1002_migrate_ra_passwords(OIDplusDatabaseConnection $db) {
28
        $res = $db->query("select * from ###ra ");
30
        $res = $db->query("select * from ###ra ");
29
        while ($row = $res->fetch_array()) {
31
        while ($row = $res->fetch_array()) {
30
                $salt = isset($row['salt']) ? $row['salt'] : '';
32
                $salt = isset($row['salt']) ? $row['salt'] : '';