Explorar o código

Merge remote-tracking branch 'origin/master'

Jason Rivard %!s(int64=7) %!d(string=hai) anos
pai
achega
d5fc3027b4

+ 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;