Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

user upload function is broken #30

Closed
smrose opened this issue Jul 1, 2024 · 3 comments
Closed

user upload function is broken #30

smrose opened this issue Jul 1, 2024 · 3 comments

Comments

@smrose
Copy link
Owner

smrose commented Jul 1, 2024

Uploading a file of users only works as designed if the fields in the CSV file are in a specific order. That is, the field names on the first line of the file are not respected.

@smrose smrose closed this as completed Jul 1, 2024
@publicsphere
Copy link
Collaborator

publicsphere commented Jul 2, 2024 via email

@smrose
Copy link
Owner Author

smrose commented Jul 2, 2024

I can't understand how it would have worked before - there is code that treats the first line as a set of header names and aborts the import unless all - and only - the expected field names are there. The bug I fixed was just actually respecting the order of field names in that first line. When I performed a test upload, I found that the usernames were being treated as password and the passwords as usernames because I had a different order than the code expected.

There are still bugs in the import. In theory, passwords must meet a complexity test, but my very simple passwords were accepted. That's outside the scope of this issue, though.

Finally, I'd like to add a comment field to the user table. That would allow at least superusers and possibly team managers to keep track of who users are. But that, too, is outside the scope of this issue.

@publicsphere
Copy link
Collaborator

publicsphere commented Jul 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants