def save(self):
token = models.PasswordResetToken.objects.get(<EOL>key=self.validated_data["<STR_LIT:key>"]<EOL>)<EOL>token.email.user.set_password(self.validated_data["<STR_LIT:password>"])<EOL>token.email.user.save()<EOL>logger.info("<STR_LIT>", token.email.user)<EOL>token.delete()<EOL>
Reset the user's password if the provided information is valid.