| | |
| | | /// </summary> |
| | | public static string GlobalRegisterFile = "Register_File"; |
| | | |
| | | /// <summary> |
| | | /// Guid |
| | | /// </summary> |
| | | public string Guid = ""; |
| | | |
| | | |
| | | /// <summary> |
| | | /// MD5PWD |
| | | /// </summary> |
| | | public string MD5PWD = ""; |
| | | ///// <summary> |
| | | ///// Guid |
| | | ///// </summary> |
| | | //public string Guid = ""; |
| | | |
| | | ///// <summary> |
| | | ///// MD5PWD |
| | | ///// </summary> |
| | | //public string MD5PWD = ""; |
| | | |
| | | /// <summary> |
| | | /// 用户 |
| | | /// </summary> |
| | | public string AccountString=""; |
| | | |
| | | public string Name = ""; |
| | | |
| | | ///// <summary> |
| | | ///// 用户密码 |
| | | ///// </summary> |
| | | //public string Password = ""; |
| | | string aesPassword = ""; |
| | | /// <summary> |
| | | /// 用户密码 |
| | | /// 用户密码 |
| | | /// </summary> |
| | | public string Password=""; |
| | | public string Password { |
| | | get { |
| | | return Shared.Securitys.EncryptionService.AesDecryptTopic (aesPassword, "HDL85521566HDLON"); |
| | | } |
| | | set { |
| | | aesPassword = Shared.Securitys.EncryptionService.AesEncryptTopic (value, "HDL85521566HDLON"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 用户ID |
| | | /// </summary> |
| | | public string ID; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string Name = ""; |
| | | |
| | | /// <summary> |
| | | /// 原密码 |
| | | /// UserType B端账号 C端账号 |
| | | /// </summary> |
| | | public string OriginalPassword; |
| | | public string UserType = "C"; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string LoginTokenString; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string RefreshToken; |
| | | |
| | | /// <summary> |
| | | /// 上一次登陆时间 |
| | |
| | | } |
| | | } |
| | | |
| | | public bool TipShowed = false; |
| | | //public bool TipShowed = false; |
| | | |
| | | public int AccountType = 0; |
| | | //public int AccountType = 0; |
| | | |
| | | //public int MasterID = 0; |
| | | public string MainUserId = ""; |
| | | ////public int MasterID = 0; |
| | | //public string MainUserId = ""; |
| | | |
| | | |
| | | public string LoginToken = ""; |
| | | //public string LoginTokenString { |
| | | //public string LoginToken = ""; |
| | | ////public string LoginTokenString { |
| | | //// get { |
| | | //// return LoginToken; |
| | | //// } |
| | | ////} |
| | | |
| | | //public string LoginTokenString{ |
| | | // get { |
| | | // return LoginToken; |
| | | // var result = System.Text.Encoding.UTF8.GetBytes (Password); |
| | | // var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider (); |
| | | // var output = md5.ComputeHash (result); |
| | | // var md5Password = BitConverter.ToString (output).Replace ("-", ""); |
| | | // var account_md5Pssword = AccountString + ":" + md5Password; |
| | | // var tokenBytes = System.Text.Encoding.UTF8.GetBytes (account_md5Pssword); |
| | | // return Convert.ToBase64String (tokenBytes).Replace ("=", "%3D"); |
| | | // } |
| | | //} |
| | | |
| | | public string LoginTokenString{ |
| | | get { |
| | | var result = System.Text.Encoding.UTF8.GetBytes (Password); |
| | | var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider (); |
| | | var output = md5.ComputeHash (result); |
| | | var md5Password = BitConverter.ToString (output).Replace ("-", ""); |
| | | var account_md5Pssword = AccountString + ":" + md5Password; |
| | | var tokenBytes = System.Text.Encoding.UTF8.GetBytes (account_md5Pssword); |
| | | return Convert.ToBase64String (tokenBytes).Replace ("=", "%3D"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// <!--SIP 帐号--> |
| | | /// </summary> |
| | | public string AllVisionRegisterDevUserNameGuid; |
| | | ///// <summary> |
| | | ///// <!--SIP 帐号--> |
| | | ///// </summary> |
| | | //public string AllVisionRegisterDevUserNameGuid; |
| | | |
| | | public void SaveUserInfo () |
| | | { |