This commit is contained in:
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
@@ -201,5 +202,19 @@ namespace Ewide.Core.Common
|
||||
{
|
||||
UpdateWhiteListUser(userID);
|
||||
}
|
||||
|
||||
public static string GetPasswordMD5(string password)
|
||||
{
|
||||
var str = password.Trim().ToLower();
|
||||
|
||||
str = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(UTF8Encoding.Default.GetBytes(str))).Replace("-", "");
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
public static bool IsAuthorized()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user