Move registration field formatting checks from backend -> frontend #9203
Labels
Lead: @cdrini
Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]
Priority: 2
Important, as time permits. [managed]
registration
Type: Feature Request
Issue describes a feature or enhancement we'd like to implement. [managed]
Type: Refactor/Clean-up
Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]
Type: Subtask of Epic
A subtask that is part of the work breakdown of an epic issue (see comments). [managed]
Dependency to
epic
#7694.For the realtime validation in
realtime_account_validation.js
, a number of simple formatting checks (such as screenname length and email format) unnecessarily happen in the API validation endpoint inaccount.py
.Describe the problem that you'd like solved
Since we're now adding frontend password format validation to
realtime_account_validation.js
and the requisitei18n
strings tocreate.html
, and to avoid making unnecessary calls to the API, I propose we move all the other formatting checks intorealtime_account_validation.js
so that the API call only happens if those checks pass.Proposal & Constraints
create.html
, per the JS internationalization processrealtime_account_validation.js
(including the email spam checks fromforms.py
) so that all formatting checks run before the API callThis will also be a helpful preparatory step for the JS form submission prevention step of #9205.
Additional context
Stakeholders
@cdrini
The text was updated successfully, but these errors were encountered: