Changeset 5429

Show
Ignore:
Timestamp:
02/28/08 12:04:13 (10 months ago)
Author:
inureyes
Message:

#843

  • 해결책 줄이기
  • 문제
    • AuthToken 을 발급 했을때 날라가는 주소로는 비번 갱신이 가능하다. (원래 비번의 암호화 값이 붙어 가니)
    • AuthToken으로 수동 로그인을 할 경우, 로그인과 동시에 토큰은 날라간다. 그러나 여전히 기존의 비밀번호를 모르므로 비밀번호 변경을 할 수가 없다.
  • 방안
    • AuthToken이 지워지는 시점을 changePassword로 조정한다. 이 경우 토큰을 로그인 시 지우면 안된다.
Location:
trunk/interface
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/login/index.php

    r5395 r5429  
    4444        $message = _text('권한이 없습니다.'); 
    4545} else if (!empty($_POST['loginid']) && !empty($_POST['password'])) { 
    46     // 팀블로그 :: 로그인 
    4746    $isLogin = login($_POST['loginid'],$_POST['password']); 
    4847    if (!$isLogin) { 
     
    5150            $showPasswordReset = true; 
    5251        } 
    53     } 
    54     else if($isLogin == 2) { 
     52    } else if($isLogin == 2) { 
    5553        $message=_t('권한이 없습니다.'); 
    5654    } 
  • trunk/interface/owner/setting/account/password/index.php

    r5427 r5429  
    1212requireStrictRoute(); 
    1313$result = false; 
    14 $isAuthToken = getUserSetting('AuthToken',false); 
    1514if($_POST['pwd'] != '' && ($_POST['prevPwd'] != '' || $isAuthToken)) { 
    16     $result = changePassword(getUserId(), $_POST['pwd'], $_POST['prevPwd'], $isAuthToken); 
     15    $result = changePassword(getUserId(), $_POST['pwd'], $_POST['prevPwd']); 
    1716} 
    1817if($result) respond::ResultPage(0);