提交后台页面

This commit is contained in:
123 2025-04-28 08:40:44 +08:00
parent 85a8d27795
commit 3e8c6b20f5
2 changed files with 228 additions and 228 deletions

View File

@ -1,27 +1,5 @@
package cc.iteachyou.cms.controller.admin;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.DisabledAccountException;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.wf.captcha.ArithmeticCaptcha;
import com.wf.captcha.utils.CaptchaUtil;
import cc.iteachyou.cms.annotation.Log;
import cc.iteachyou.cms.annotation.Log.OperatorType;
import cc.iteachyou.cms.common.BaseController;
@ -36,11 +14,27 @@ import cc.iteachyou.cms.security.token.TokenManager;
import cc.iteachyou.cms.service.MenuService;
import cn.hutool.crypto.asymmetric.KeyType;
import cn.hutool.crypto.asymmetric.RSA;
import com.wf.captcha.ArithmeticCaptcha;
import com.wf.captcha.utils.CaptchaUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.DisabledAccountException;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import java.io.IOException;
import java.util.List;
/**
* 用户登录相关不需要做登录限制
*
*/
@Slf4j
@Controller
@ -96,6 +90,7 @@ public class UserLoginController extends BaseController {
/**
* 登录提交
*
* @param entity 登录的UUser
* @param rememberMe 是否记住
* @param request用来取登录之前Url地址用来登录后跳转到没有登录之前的页面
@ -132,7 +127,9 @@ public class UserLoginController extends BaseController {
user.setPassword(sh.toString());
user.setSaltByte(salt);
user = TokenManager.login(user, rememberMe, salt);
log.info("用户名" + user.getUsername());
log.info("密码" + user.getPassword());
log.info("" + user.getSalt());
UserLoginVO userVO = new UserLoginVO();
BeanUtils.copyProperties(user, userVO);

View File

@ -93,7 +93,8 @@
<li>修改分页标签、栏目文档标签、SQL标签Bug</li>
<li>主题包的缩略图支持重新上传</li>
</ul>
<b>根据软件使用协议,未经商业授权的系统请务必保留官方版权。前后台页底必须保留 "Powered by I Teach You , 我教你!" 文字和链接!</b>
<b>根据软件使用协议,未经商业授权的系统请务必保留官方版权。前后台页底必须保留 "Powered by I Teach You
, 我教你!" 文字和链接!</b>
</div>
<div class="clearFix"></div>
</div>
@ -107,7 +108,8 @@
<div class="panel-body" style="height: 300px;">
<ul class="newest">
<li th:each="item : ${newest}">
<a th:text="${item.title}" target="_blank" th:title="${item.title}" th:href="'/article/' + ${item.id}"></a>
<a th:text="${item.title}" target="_blank" th:title="${item.title}"
th:href="'/article/' + ${item.id}"></a>
</li>
</ul>
</div>
@ -117,13 +119,14 @@
<section class="panel">
<div class="panel-heading dashboard-title">开发团队</div>
<div class="panel-body" style="height: 300px;">
<p>版权所有:<b><a href="http://www.iteachyou.cc" target="_blank" title="I Teach You我教你">I Tech You , 我教你!</a></b></p>
<p>开发团队成员:<b>王俊南</b></p>
<p>官方网址:<b><a href="http://www.iteachyou.cc" target="_blank" title="I Teach You我教你">http://www.iteachyou.cc</a></b></p>
<p>官方演示网址:<b><a href="http://cms.iteachyou.cc" target="_blank" title="梦想家CMS内容管理系统">http://cms.iteachyou.cc</a></b></p>
<p>码云源码网址:<b><a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" title="梦想家CMS内容管理系统">https://gitee.com/iteachyou/dreamer_cms</a></b></p>
<p>Github源码网址<b><a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" title="梦想家CMS内容管理系统">https://github.com/iteachyou-wjn/dreamer_cms</a></b></p>
<p>官方QQ群<b>①597652651</b><b>②623605199</b><b>③573574854</b></p>
<p>版权所有:<b><a href="http://www.iteachyou.cc" target="_blank" title="I Teach You我教你">I Tech You
, 我教你!</a></b></p>
<!-- <p>开发团队成员:<b></b></p>-->
<!-- <p>官方网址:<b><a href="http://www.iteachyou.cc" target="_blank" title="I Teach You我教你">http://www.iteachyou.cc</a></b></p>-->
<!-- <p>官方演示网址:<b><a href="http://cms.iteachyou.cc" target="_blank" title="梦想家CMS内容管理系统">http://cms.iteachyou.cc</a></b></p>-->
<!-- <p>码云源码网址:<b><a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" title="梦想家CMS内容管理系统">https://gitee.com/iteachyou/dreamer_cms</a></b></p>-->
<!-- <p>Github源码网址<b><a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" title="梦想家CMS内容管理系统">https://github.com/iteachyou-wjn/dreamer_cms</a></b></p>-->
<!-- <p>官方QQ群<b>①597652651</b>、<b>②623605199</b>、<b>③573574854</b></p>-->
</div>
</section>
</div>