| | |
| | | TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = null;
|
| | |
|
| | | TouchIDUtils.TouchIDSupperType type = TouchIDUtils.getTouchIDSupperType();
|
| | | if (type == TouchIDUtils.TouchIDSupperType.TouchID && UserCenterResourse.Option.FingerprintAuthentication == true)
|
| | | if (type == TouchIDUtils.TouchIDSupperType.TouchID && UserCenterResourse.AccountOption.FingerprintAuthentication == true)
|
| | | {
|
| | | //Touch ID验证
|
| | | TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent += (sender2, e2) =>
|
| | |
| | | else if (e2 == TouchIDUtils.TouchIDState.InputPassword)
|
| | | {
|
| | | //密码验证
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.Option.PswAuthentication) == false)
|
| | | if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
|
| | | {
|
| | | var form = new PswSecondarySecurityForm();
|
| | | form.AddForm(i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
|
| | | }
|
| | | //手势验证
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == false)
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
|
| | | {
|
| | | var form = new PswGestureSecirityForm();
|
| | | form.AddForm(i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
|
| | |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, null);
|
| | | FailAction = null;
|
| | | }
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.Option.PswAuthentication) == false)
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
|
| | | {
|
| | | //密码验证
|
| | | var form = new PswSecondarySecurityForm();
|
| | | form.AddForm(i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
|
| | | FailAction = null;
|
| | | }
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == false)
|
| | | else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
|
| | | {
|
| | | //手势验证
|
| | | var form = new PswGestureSecirityForm();
|