Ignore:
Timestamp:
2011/01/28 16:19:40 (16 years ago)
Author:
eccuore
Message:

#642(共通ロジックの機能向上) mode 取得用の関数を利用するように修正(switchリファクタリングは未対応)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/forgot/LC_Page_Forgot.php

    r19998 r20041  
    3838    /** フォームパラメータの配列 */ 
    3939    var $objFormParam; 
    40      
     40 
    4141    /** 秘密の質問の答え */ 
    4242    var $arrReminder; 
    … …  
    4444    /** 変更後パスワード */ 
    4545    var $temp_password; 
    46      
     46 
    4747    /** エラーメッセージ */ 
    4848    var $errmsg; 
    … …  
    8484    function action() { 
    8585        $objQuery = new SC_Query(); 
    86          
     86 
    8787        if ($_SERVER["REQUEST_METHOD"] == "POST") { 
    8888            if (!SC_Helper_Session_Ex::isValidToken()) { 
    … …  
    9090            } 
    9191        } 
    92         if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    93  
    94         switch($_POST["mode"]) { 
     92        switch($this->getMode()) { 
    9593            case 'mail_check': 
    9694                $this->lfForgotMailCheck(); 
    … …  
    114112        } 
    115113    } 
    116      
     114 
    117115    // 最初に開いた時の処理(メールアドレス入力画面) 
    118116    function lfForgotDefault() { 
    … …  
    121119        $this->tpl_login_email = $objCookie->getCookie('login_email'); 
    122120    } 
    123      
     121 
    124122    // メールアドレス確認(秘密の質問入力画面) 
    125123    function lfForgotMailCheck() { 
    … …  
    162160        return $objErr->arrErr; 
    163161    } 
    164      
     162 
    165163    // メールアドレス確認におけるパラメーター情報の初期化 
    166164    function lfMailCheckInitParam() { 
    … …  
    172170            $this->objFormParam->addParam('メールアドレス', "email", MTEXT_LEN, "a", array("EXIST_CHECK", "EMAIL_CHECK", "NO_SPTAB" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK","MOBILE_EMAIL_CHECK")); 
    173171        } 
    174          
     172 
    175173    } 
    176174 
    … …  
    195193            if (isset($result[0]['reminder']) and isset($this->arrReminder[$result[0]['reminder']]) 
    196194                    and $result[0]['reminder'] == $this->arrForm['reminder']) { 
    197                  
     195 
    198196                if (SC_Utils_Ex::sfIsMatchHashPassword($this->arrForm['reminder_answer'], $result[0]['reminder_answer'], $result[0]['salt'])) { 
    199197                    // 秘密の答えが一致 
    … …  
    228226        } 
    229227    } 
    230      
     228 
    231229    function lfSecretCheckInitParam() { 
    232230        // メールチェックと同等のチェックを再度行う 
Note: See TracChangeset for help on using the changeset viewer.