Browse Source

切换登录

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@5780 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
yingp 9 years ago
parent
commit
7a89b2d359

+ 1 - 1
src/main/java/com/uas/platform/b2b/controller/SecurityController.java

@@ -27,7 +27,7 @@ public class SecurityController {
 		SystemSession.clear();
 		SystemSession.clear();
 	}
 	}
 
 
-	@RequestMapping(value = "/signin")
+	@RequestMapping(value = "/login/page")
 	public ModelMap signin(HttpServletRequest request, HttpServletResponse response) throws IOException {
 	public ModelMap signin(HttpServletRequest request, HttpServletResponse response) throws IOException {
 		SSOHelper.clearLogin(request, response);
 		SSOHelper.clearLogin(request, response);
 		return new ModelMap("content", SSOHelper.getRedirectRefererLoginUrl(request));
 		return new ModelMap("content", SSOHelper.getRedirectRefererLoginUrl(request));

+ 1 - 0
src/main/webapp/WEB-INF/spring/webmvc.xml

@@ -59,6 +59,7 @@
 		<mvc:interceptor>
 		<mvc:interceptor>
 			<mvc:mapping path="/**"></mvc:mapping>
 			<mvc:mapping path="/**"></mvc:mapping>
 			<mvc:exclude-mapping path="/**/static/**"/>
 			<mvc:exclude-mapping path="/**/static/**"/>
+			<mvc:mapping path="/login/**"></mvc:mapping>
 			<mvc:exclude-mapping path="/file/**"/>
 			<mvc:exclude-mapping path="/file/**"/>
 			<mvc:exclude-mapping path="/public/**"/>
 			<mvc:exclude-mapping path="/public/**"/>
 			<mvc:exclude-mapping path="/erp/**"/>
 			<mvc:exclude-mapping path="/erp/**"/>

+ 1 - 1
src/main/webapp/resources/js/common/services.js

@@ -119,7 +119,7 @@ define(['angular', 'toaster'], function(angular) {
                 return logout;
                 return logout;
             },
             },
             redirectSignin: function() {
             redirectSignin: function() {
-            	$http.get(rootPath + '/signin').success(function(data) {
+            	$http.get(rootPath + '/login/page').success(function(data) {
                     if (data.content) {
                     if (data.content) {
                     	window.location.href = data.content;
                     	window.location.href = data.content;
                     } else {
                     } else {