카카오로그인 연동 방식 변경

-oauth 테이블 삭제
-비밀번호 변경 기능 추가(카카오톡 나에게 보내기)
This commit is contained in:
2018-03-18 05:44:20 +09:00
parent bd26ee858c
commit 6130bd22cb
8 changed files with 149 additions and 39 deletions
+1 -22
View File
@@ -43,33 +43,12 @@ CREATE TABLE `member` (
)
ENGINE=InnoDB DEFAULT CHARSET=UTF8;
-- 인증 테이블
CREATE TABLE `auth_kakao` (
`no` BIGINT(20) NOT NULL AUTO_INCREMENT,
`id` BIGINT(20) NOT NULL COMMENT 'after signup',
`access_token` CHAR(128) NOT NULL COMMENT 'after token',
`refresh_token` CHAR(128) NOT NULL,
`expires` DATETIME NOT NULL,
`refresh_token_expires` DATETIME NOT NULL,
`datetime` DATETIME NOT NULL,
`email` VARCHAR(128) NOT NULL,
PRIMARY KEY (`no`),
INDEX `access_token` (`access_token`),
INDEX `id` (`id`),
INDEX `expires` (`expires`),
INDEX `email` (`email`),
INDEX `refresh_expires` (`refresh_token_expires`),
INDEX `datetime` (`datetime`)
)
ENGINE=InnoDB DEFAULT CHARSET=UTF8;
-- 로그인 로그 테이블
CREATE TABLE `member_log` (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`member_no` INT(11) NOT NULL,
`date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`action_type` ENUM('reg','try_login','login','logout','oauth','make_general','access_server') NOT NULL,
`action_type` ENUM('reg','try_login','login','logout','oauth','change_pw','make_general','access_server') NOT NULL,
`action` TEXT NULL DEFAULT NULL COMMENT 'JSON',
PRIMARY KEY (`id`),
INDEX `action` (`member_no`, `action_type`, `date`),