瀏覽代碼

Remove technical term `in-band` from user-facing text

JC Brand 1 年之前
父節點
當前提交
d6fd8f0d02
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/plugins/profile/password-reset.js
  2. 2 2
      src/plugins/profile/tests/password-reset.js

+ 2 - 2
src/plugins/profile/password-reset.js

@@ -45,7 +45,7 @@ class PasswordReset extends CustomElement {
             this.alert_message = __('Timeout error');
             return;
         } else if (sizzle(`error service-unavailable[xmlns="${Strophe.NS.STANZAS}"]`, iq_response).length) {
-            this.alert_message = __('Your server does not support in-band password reset');
+            this.alert_message = __('Your server does not support password reset');
             return;
         } else if (u.isErrorStanza(iq_response)) {
             this.alert_message = __('Your server responded with an unknown error, check the console for details');
@@ -68,7 +68,7 @@ class PasswordReset extends CustomElement {
         if (iq_result === null) {
             this.alert_message = __('Timeout error while trying to set your password');
         } else if (sizzle(`error not-allowed[xmlns="${Strophe.NS.STANZAS}"]`, iq_result).length) {
-            this.alert_message = __('Your server does not allow in-band password reset');
+            this.alert_message = __('Your server does not allow password reset');
         } else if (sizzle(`error forbidden[xmlns="${Strophe.NS.STANZAS}"]`, iq_result).length) {
             this.alert_message = __('You are not allowed to change your password');
         } else if (u.isErrorStanza(iq_result)) {

+ 2 - 2
src/plugins/profile/tests/password-reset.js

@@ -73,7 +73,7 @@ describe('The profile modal', function () {
     );
 
     it(
-        'informs you if you cannot reset your password due to in-band registration not being supported',
+        'informs you if you cannot reset your password due to registration not being supported',
         mock.initConverse([], {}, async function (_converse) {
             const modal = await submitPasswordResetForm(_converse);
 
@@ -98,7 +98,7 @@ describe('The profile modal', function () {
             );
 
             const alert = await u.waitUntil(() => modal.querySelector('.alert-danger'));
-            expect(alert.textContent).toBe('Your server does not support in-band password reset');
+            expect(alert.textContent).toBe('Your server does not support password reset');
         })
     );