Skip to content

Commit

Permalink
Merge pull request #594 from pateljannat/user-validate-image
Browse files Browse the repository at this point in the history
fix: dont validate user uploaded files
  • Loading branch information
pateljannat authored Aug 18, 2023
2 parents 3dcb55f + 46e7c83 commit ce8ac15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lms/overrides/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from frappe.core.doctype.user.user import User
from frappe.utils import cint, escape_html, random_string
from frappe.website.utils import is_signup_disabled
from lms.lms.utils import validate_image, get_average_rating
from lms.lms.utils import get_average_rating
from frappe.website.utils import cleanup_page_name
from frappe.model.naming import append_number_if_name_exists
from lms.widgets import Widgets
Expand All @@ -16,8 +16,6 @@ def validate(self):
super().validate()
self.validate_username_duplicates()
self.validate_completion()
self.user_image = validate_image(self.user_image)
self.cover_image = validate_image(self.cover_image)

def validate_username_duplicates(self):
while not self.username or self.username_exists():
Expand Down

0 comments on commit ce8ac15

Please sign in to comment.