Skip to content

Commit

Permalink
删除登录注册逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
shuzheng committed Jun 9, 2017
1 parent e209735 commit 0ae690a
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.zheng.ucenter.web.controller;

import com.zheng.common.base.BaseController;
import com.zheng.ucenter.common.constant.UcenterResult;
import com.zheng.ucenter.common.constant.UcenterResultConstant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
Expand All @@ -9,6 +11,8 @@
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
* 注册控制器
* Created by shuzheng on 2017/5/2.
Expand All @@ -24,12 +28,26 @@ public String signup(Model model) {
return thymeleaf("/reg");
}

@RequestMapping(value = "/signup", method = RequestMethod.POST)
@ResponseBody
public Object signup(HttpServletRequest request) {

return new UcenterResult(UcenterResultConstant.SUCCESS, "");
}

@RequestMapping(value = "/signin", method = RequestMethod.GET)
public String signin(Model model) {

return thymeleaf("/login");
}

@RequestMapping(value = "/signin", method = RequestMethod.POST)
@ResponseBody
public Object signin(HttpServletRequest request) {

return new UcenterResult(UcenterResultConstant.SUCCESS, "");
}

@RequestMapping(value = "/signout", method = RequestMethod.GET)
@ResponseBody
public String index(Model model) {
Expand Down

0 comments on commit 0ae690a

Please sign in to comment.