Ignore:
Timestamp:
2011/04/15 12:45:37 (15 years ago)
Author:
shutta
Message:

refs #1196 (【2.11系DB移行機能】顧客情報)
2.11未満のバージョンからのデータ移行を考慮して、パスワード、秘密の質問の照合・更新処理を調整

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/util/SC_Utils.php

    r20841 r20845  
    21222122                } 
    21232123            } else { 
    2124                 $hash = SC_Utils_Ex::sfGetHashString($pass, $salt); 
     2124                if (empty($salt)) { 
     2125                    // 旧バージョン(2.11未満)からの移行を考慮 
     2126                    $hash = sha1($pass . ":" . AUTH_MAGIC); 
     2127                } else { 
     2128                    $hash = SC_Utils_Ex::sfGetHashString($pass, $salt); 
     2129                } 
    21252130                if($hash === $hashpass) { 
    21262131                    $res = true; 
Note: See TracChangeset for help on using the changeset viewer.