old mode 100755
new mode 100644
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswGestureSecirityForm.cs |
| | |
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | namespace Shared.Phone |
| | | {
|
| | | /// <summary>
|
| | | /// 手势密码验证界面
|
| | |
| | | };
|
| | | gestureControl.FinishInputEvent += (Password, pswLeng) =>
|
| | | {
|
| | | if (UserCenterResourse.AccountOption.GestureAuthentication != Password)
|
| | | if (HdlUserCenterResourse.AccountOption.GestureAuthentication != Password) |
| | | {
|
| | | UserCenterResourse.AccountOption.PasswordGestureInputCount--;
|
| | | if (UserCenterResourse.AccountOption.PasswordGestureInputCount <= 0)
|
| | | HdlUserCenterResourse.AccountOption.PasswordGestureInputCount--; |
| | | if (HdlUserCenterResourse.AccountOption.PasswordGestureInputCount <= 0) |
| | | {
|
| | | //管理员身份验证失败,请重新登录
|
| | | string msg2 = Language.StringByID(R.MyInternationalizationString.uCheckAdministratorFailAndReload);
|
| | | this.ShowMassage(ShowMsgType.Tip, msg2);
|
| | | UserCenterLogic.ReLoginAgain(Common.Config.Instance.Account);
|
| | | HdlAccountLogic.Current.ReLoginAgain(Common.Config.Instance.Account); |
| | | return;
|
| | | }
|
| | | //密码错误,请重新输入
|
| | |
| | | return;
|
| | | }
|
| | | //重置剩余密码次数
|
| | | UserCenterResourse.AccountOption.ResetPasswordCount();
|
| | | HdlUserCenterResourse.AccountOption.ResetPasswordCount(); |
| | | //界面关闭
|
| | | this.CloseForm();
|
| | | SuccessAction?.Invoke();
|
| | |
| | | var btnTouch = new BottomLeftClickButton(frameBack.Width / 2, Application.GetRealHeight(127));
|
| | | frameBack.AddChidren(btnTouch);
|
| | | btnTouch.InitControl(i_TouchText);
|
| | | if (UserCenterResourse.AccountOption.FingerprintAuthentication == false)
|
| | | if (HdlUserCenterResourse.AccountOption.FingerprintAuthentication == false) |
| | | {
|
| | | //没有启用Touch ID
|
| | | btnTouch.CanClick = false;
|
| | |
| | | TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = null;
|
| | |
|
| | | //密码验证
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false) |
| | | {
|
| | | var form = new PswSecondarySecurityForm();
|
| | | this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
|
| | | this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); |
| | | }
|
| | | //手势验证
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
|
| | | else if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == false) |
| | | {
|
| | | var form = new PswGestureSecirityForm();
|
| | | this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
|
| | | this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); |
| | | }
|
| | | else
|
| | | {
|
| | |
| | | var btnPsw = new BottomRightClickButton(frameBack.Width - btnTouch.Width, btnTouch.Height);
|
| | | frameBack.AddChidren(btnPsw);
|
| | | btnPsw.InitControl(i_PasswordText);
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true)
|
| | | if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true) |
| | | {
|
| | | //没有启用密码开锁
|
| | | btnPsw.CanClick = false;
|
| | |
| | | btnPsw.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new PswSecondarySecurityForm();
|
| | | this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
|
| | | this.AddFormAndCloseNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction); |
| | | };
|
| | | }
|
| | |
|