Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[login] TRIM inputs before inserting into users or examiners #5809

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

ridz1208
Copy link
Collaborator

Brief summary of changes

another issue on 21

user_accounts and examiner modules trim inputs before submission. request account does not do any trimming so entries like first/last name and emails get submitted with empty spaces around them.

This is particularly problematic for examiners where an examiner created with the incorrect Real_name value will cause a duplication of the examiner the first time the form is saved on user accounts because the name then gets trimmed and restored in it's correct format in the examiner table

result -> 500 error due to pselectrow returning more than one row

@ridz1208 ridz1208 added Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Priority: Projects PR or issue is a priority for at least one project and should be a higher priority for LORIS labels Nov 28, 2019
@christinerogers
Copy link
Contributor

christinerogers commented Nov 28, 2019

Do these inputs need sanitizing too?

@driusan driusan merged commit da04429 into aces:21.0-release Nov 29, 2019
@ridz1208 ridz1208 added this to the 21.0.5 milestone Nov 29, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Priority: Projects PR or issue is a priority for at least one project and should be a higher priority for LORIS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants