Constructor
new PasswordController(model, view)
- Description:
Constructor
- Source:
Parameters:
Name | Type | Description |
---|---|---|
model |
XKPasswd | new PasswordModel |
view |
PasswordView | new PasswordView |
Methods
clearPasswords()
- Description:
Clear the passwords that are generated
- Source:
generatePasswords(num)
- Description:
Handle the password generation. This method is passed to the bindGeneratePassword method of the PasswordView class as the function to handle the actual generation of the passwords.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
num |
number | number of passwords to generate |