| | |
| | | if (etPasswrod.Text == "" && etConfirmPassword.Text == "") { |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseWriteTheCompleteContent), Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | return; |
| | | } else if (passwordText.Contains(userName)) { |
| | | //密码不能包含用户名 |
| | | new Alert ("", ErrorCode.PasswordNotUsername, |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | return; |
| | | } else if (!CommonUtlis.Current.CheckPassword(etPasswrod.Text.Trim ())) { |
| | | new Alert ("", ErrorCode.PasswordStrengthNotMatch, |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | |
| | | var requestObj = new YdRegisterAccountObj () { Account = account, Password = passwordText, Contact = userName, Language = Language.CurrentLanguage, Company = MainPage.SoftSmsType }; |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | var revertObj = MainPage.RequestHttps (API.YdRegisterAccount, requestJson); |
| | | if (revertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | if (revertObj.StateCode.ToUpper() == StateCode.SUCCESS) { |
| | | Application.RunOnMainThread (() => { |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.AuthenticationMail), Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | Close (); |