MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / validate

Method validate

web/pgadmin/authenticate/internal.py:98–105  ·  view source on GitHub ↗

User validation

(self, form)

Source from the content-addressed store, hash-verified

96 return gettext("internal")
97
98 def validate(self, form):
99 """User validation"""
100 # validate the email id first
101 if not validate_email(form.data['email']):
102 return False, self.messages('INVALID_EMAIL')
103 # Flask security validation
104 submit = form.validate_on_submit()
105 return submit, None
106
107 def authenticate(self, form):
108 username = form.data['email']

Callers

nothing calls this directly

Calls 2

validate_emailFunction · 0.90
messagesMethod · 0.45

Tested by

no test coverage detected