Forráskód Böngészése

【fix】【登录】AppStore-免费版,账号密码登录,输入过长密码提示错误

tangchao 1 hete
szülő
commit
fd930cb6fa

+ 2 - 0
PDF Office/PDF Master/MemberCenter/Assets/en.lproj/MemberCenterLocalizable.strings

@@ -111,3 +111,5 @@
 "Subscription" = "Subscription";
 "expires" = "expires";
 "Free Use 1-Year AI Tools" = "Free Use 1-Year AI Tools";
+
+"Password cannot exceed 30 characters." = "Password cannot exceed 30 characters.";

+ 2 - 0
PDF Office/PDF Master/MemberCenter/Assets/zh-Hans.lproj/MemberCenterLocalizable.strings

@@ -107,3 +107,5 @@
 "Subscription" = "订阅";
 "expires" = "到期";
 "Free Use 1-Year AI Tools" = "0元领取1年AI";
+
+"Password cannot exceed 30 characters." = "密码不能超过30个字符。";

+ 2 - 0
PDF Office/PDF Master/MemberCenter/Assets/zh-Hant.lproj/MemberCenterLocalizable.strings

@@ -108,3 +108,5 @@
 "Subscription" = "订阅";
 "expires" = "到期";
 "Free Use 1-Year AI Tools" = "0元領取1年AI";
+
+"Password cannot exceed 30 characters." = "密碼不能超過30個字元。";

+ 1 - 1
PDF Office/PDF Master/MemberCenter/View/KMSignUpView.swift

@@ -377,7 +377,7 @@ class KMSignUpView: KMBaseXibView {
                 if newValue.count <= 30 && newValue.count >= 0 {
                     self?.viewModel.passwordErrorMessage = ""
                 } else {
-                    self?.viewModel.passwordErrorMessage = NSLocalizedString("Password error.", tableName: "MemberCenterLocalizable", comment: "")
+                    self?.viewModel.passwordErrorMessage = NSLocalizedString("Password cannot exceed 30 characters.", tableName: "MemberCenterLocalizable", comment: "")
                 }
             }
             .store(in: &cancellables)

+ 2 - 2
PDF Office/PDF Master/MemberCenter/ViewModel/KMSignUpViewModel.swift

@@ -227,8 +227,8 @@ class KMSignUpViewModel: ObservableObject {
             }
             code = verificationCode
         } else if signUpState == .password {
-            if password.count <= 0 || verificationCode.count > 30 {
-                passwordErrorMessage = NSLocalizedString("Password error.", tableName: "MemberCenterLocalizable", comment: "")
+            if password.count <= 0 || password.count > 30 {
+                passwordErrorMessage = NSLocalizedString("Password cannot exceed 30 characters.", tableName: "MemberCenterLocalizable", comment: "")
                 
                 callback?(nil)
                 return

+ 2 - 0
PDF Office/PDF Master/Strings/en.lproj/Localizable.strings

@@ -4273,3 +4273,5 @@
 
 "2 devices" = "2 devices";
 "4 devices" = "2 devices";
+
+"Password cannot exceed 30 characters." = "Password cannot exceed 30 characters.";

+ 2 - 0
PDF Office/PDF Master/Strings/zh-Hans.lproj/Localizable.strings

@@ -4175,3 +4175,5 @@
 
 "2 devices" = "2台设备";
 "4 devices" = "4台设备";
+
+"Password cannot exceed 30 characters." = "密码不能超过30个字符。";

+ 2 - 0
PDF Office/PDF Master/Strings/zh-Hant.lproj/Localizable.strings

@@ -4305,3 +4305,5 @@
 
 "2 devices" = "2台設備";
 "4 devices" = "4台設備";
+
+"Password cannot exceed 30 characters." = "密碼不能超過30個字元。";