def save(self):
        user = self.cleaned_data["username"]
        if user:
            toaddr = user.get_contact().get_email()
            if toaddr:
                password = user.generate_new_password()
                email = EmailPassword(toaddr, user.user.username, password)
                email.send_email()
Send e-mail
dataset/ETHPy150Open treeio/treeio/treeio/core/forms.py/PasswordResetForm.save