2 Revize b8b554529f ... 7db56afd10

Autor SHA1 Zpráva Datum
  pzc 7db56afd10 Merge remote-tracking branch 'origin/master' před 4 roky
  pzc d0c64693c0 建cookie LoginToken 值是随机token před 4 roky

+ 1 - 1
ymall/src/main/java/com/liangjian11/ymall/controller/common/WechatController.java

@@ -133,7 +133,7 @@ public class WechatController {
       cookie0.setMaxAge(24 * 60 * 60);
       cookie0.setDomain("360lj.com");
       response.addCookie(cookie0);
-      Cookie cookie1 = new Cookie("LoginToken", userAccount.getId());
+      Cookie cookie1 = new Cookie("LoginToken", loginToken);
       cookie1.setPath("/");
       cookie1.setMaxAge(24 * 60 * 60);
       cookie1.setDomain("360lj.com");

+ 1 - 1
ymall/src/main/java/com/liangjian11/ymall/utils/MongoDBUtil.java

@@ -18,7 +18,7 @@ public class MongoDBUtil {
 	private static final Integer port=27018;
 	private static final String username="admin";
 	private static final String database="B2BMall";
-	private static final String password="360lj.ocm";
+	private static final String password="";
 	
 	public static MongoDatabase mongoDatabase(){
 //    List<ServerAddress> adds = new ArrayList<ServerAddress>();