Merge pull request #206 from kennethsequeira/patch-1

fix: spell check in Validation Message
This commit is contained in:
Jannat Patel
2021-09-16 16:35:13 +05:30
committed by GitHub

View File

@@ -39,7 +39,7 @@ class CustomUser(User):
frappe.throw(_("Username already exists.")) frappe.throw(_("Username already exists."))
if not re.match("^[A-Za-z0-9_]*$", self.username): if not re.match("^[A-Za-z0-9_]*$", self.username):
frappe.throw(_("Username can only contain alphabets, numbers and unedrscore.")) frappe.throw(_("Username can only contain alphabets, numbers and underscore."))
if underscore_condition: if underscore_condition:
frappe.throw(_("First and Last character of username cannot be Underscore(_).")) frappe.throw(_("First and Last character of username cannot be Underscore(_)."))