增加登录、注册、退出、找回密码方法

This commit is contained in:
shuzheng 2017-05-02 23:25:31 +08:00
parent f8a3f73c25
commit d66ac5deed
6 changed files with 50 additions and 7 deletions

View File

@ -1,7 +0,0 @@
package com.zheng.ucenter.home.controller;
public class AppController {
}

View File

@ -0,0 +1,46 @@
package com.zheng.ucenter.web.controller;
import com.zheng.common.base.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* 注册控制器
* Created by shuzheng on 2017/5/2.
*/
@Controller
public class SignController extends BaseController {
private static Logger _log = LoggerFactory.getLogger(SignController.class);
@RequestMapping(value = "/signup", method = RequestMethod.GET)
public String signup(Model model) {
return thymeleaf("/reg");
}
@RequestMapping(value = "/signin", method = RequestMethod.GET)
public String signin(Model model) {
return thymeleaf("/login");
}
@RequestMapping(value = "/signout", method = RequestMethod.GET)
@ResponseBody
public String index(Model model) {
return "signout";
}
@RequestMapping(value = "/password_reset", method = RequestMethod.GET)
public String password_reset(Model model) {
return thymeleaf("/password");
}
}

View File

@ -1,2 +1,3 @@
env=${profile.env}
app.name=${app.name}
zheng-ui.path=${zheng-ui.path}

View File

@ -1,2 +1,3 @@
profile.env=dev
app.name=zheng-ucenter-web
zheng-ui.path=http://ui.zhangshuzheng.cn:1000

View File

@ -1,2 +1,3 @@
profile.env=prod
app.name=zheng-ucenter-web
zheng-ui.path=http://ui.zhangshuzheng.cn:1000

View File

@ -1,2 +1,3 @@
profile.env=test
app.name=zheng-ucenter-web
zheng-ui.path=http://ui.zhangshuzheng.cn:1000