From 18055ce24482f54b0c8ce3930ff80dd0461bb338 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 10 Sep 2018 00:38:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EC=A6=9D=EC=8B=9C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=95=84=EC=9B=83=EC=9D=B4=20=EB=B0=94=EB=A1=9C=20?= =?UTF-8?q?=ED=92=80=EB=A6=AC=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oauth_kakao/j_check_OTP.php | 2 +- src/sammo/Session.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/oauth_kakao/j_check_OTP.php b/oauth_kakao/j_check_OTP.php index bf8b72dc..95509e36 100644 --- a/oauth_kakao/j_check_OTP.php +++ b/oauth_kakao/j_check_OTP.php @@ -79,7 +79,7 @@ if($OTPValue != $otp){ } $tokenValidUntil = TimeUtil::DatetimeFromNowDay(10); -$session->setReqOTP(false); +$session->setReqOTP(false, $tokenValidUntil); RootDB::db()->update('member', [ 'oauth_info'=>Json::encode($oauthInfo), 'token_valid_until'=>$tokenValidUntil, diff --git a/src/sammo/Session.php b/src/sammo/Session.php index 984e7ac3..9394252c 100644 --- a/src/sammo/Session.php +++ b/src/sammo/Session.php @@ -180,8 +180,9 @@ class Session return $this; } - public function setReqOTP(bool $reqOTP=false){ + public function setReqOTP(bool $reqOTP=false, string $tokenValidUntil){ $this->set('reqOTP', $reqOTP); + $this->set('tokenValidUntil', $tokenValidUntil); }