Skip to content

Commit

Permalink
Fix func calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Sep 18, 2023
1 parent 1b1cc64 commit a5464ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export default defineComponent({
confirmDisabled: true,
inputLabel: this.$gettext('Password'),
inputPasswordPolicy: this.passwordPolicyService.getPolicy(),
inputGeneratePasswordMethod: this.passwordPolicyService.generatePassword,
inputGeneratePasswordMethod: () => this.passwordPolicyService.generatePassword(),
inputPlaceholder: this.link.password ? '●●●●●●●●' : null,
inputType: 'password',
onCancel: this.hideModal,
Expand Down
1 change: 1 addition & 0 deletions packages/web-app-files/src/quickActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function showQuickLinkPasswordModal({ $gettext, store, passwordPolicyServ
hasInput: true,
inputDescription: $gettext('Passwords for links are required.'),
inputPasswordPolicy: passwordPolicyService.getPolicy(),
inputGeneratePasswordMethod: () => passwordPolicyService.generatePassword(),
inputLabel: $gettext('Password'),
inputType: 'password',
onCancel: () => store.dispatch('hideModal'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,6 @@ export class PasswordPolicyService {
}

public generatePassword(): string {
return GeneratePassword({
symbols: true,
length: 12,
minLengthLowercase: 2,
minLengthUppercase: 2,
minLengthNumbers: 2,
minLengthSymbols: 2
})
return GeneratePassword({
symbols: true,
length: this.generatePasswordRules.length,
Expand Down

0 comments on commit a5464ea

Please sign in to comment.