Selaa lähdekoodia

Merge pull request #399 from pwm-project/bugfix/helpdesk-change-password-ie

Fix helpdesk module so change password button works in IE
Jason 7 vuotta sitten
vanhempi
commit
dfcf63fb4c

+ 4 - 1
client/src/components/changepassword/autogen-change-password.controller.ts

@@ -38,7 +38,10 @@ export default class AutogenChangePasswordController {
                 private HelpDeskService: IHelpDeskService,
                 private IasDialogService: any,
                 private personUserKey: string) {
-        this.passwordSuggestions = Array<string>(20).fill('');
+        this.passwordSuggestions = [];
+        for (let i = 0; i < 20; i++) {
+            this.passwordSuggestions.push('');
+        }
         this.populatePasswordSuggestions();
     }
 

+ 4 - 1
client/src/components/changepassword/type-change-password.controller.ts

@@ -78,7 +78,10 @@ export default class TypeChangePasswordController {
         this.password1 = '';
         this.password2 = '';
         this.passwordAcceptable = false;
-        this.passwordSuggestions = Array<string>(20).fill('');
+        this.passwordSuggestions = [];
+        for (let i = 0; i < 20; i++) {
+            this.passwordSuggestions.push('');
+        }
         this.pendingValidation = false;
         this.showStrengthMeter = HelpDeskService.showStrengthMeter;
         this.strength = 0;