【修复】修复MD5密码加密方法时间格式化有毫秒造成从数据库中读取不一样的问题。#I4MC01

pull/180/head
JianWeie 3 years ago
parent 769f543cc5
commit 6a25feaab4

@ -506,7 +506,7 @@ namespace CoreCms.Net.Utility.Helper
/// <returns></returns>
public static string EnPassword(string password, DateTime createTime)
{
var dtStr = createTime.ToString("yyyyMMddHHmmssfff");
var dtStr = createTime.ToString("yyyyMMddHHmmss");
var md5 = Md5For32(password);
var enPwd = Md5For32(md5 + dtStr);
return enPwd;

Loading…
Cancel
Save