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

Add a script to create users from a CSV #58

Open
2 tasks
shubham1172 opened this issue Jan 2, 2020 · 3 comments
Open
2 tasks

Add a script to create users from a CSV #58

shubham1172 opened this issue Jan 2, 2020 · 3 comments
Assignees
Labels
backend Back-end job priority:medium Medium priority task

Comments

@shubham1172
Copy link
Member

To-do

Add a script (python/shell/whatever) to create users from a CSV. Use the default admin credentials to login and then create users. Will be needed for creating users for each council. Also, change the access of the signup function to admin only.

Checklist

  • Script to create users
  • Change signup route's access

Files to play with:

  • routes/auth.route.js
  • scripts/create_users.xyz
@shubham1172 shubham1172 added the backend Back-end job label Jan 2, 2020
@shubham1172 shubham1172 added the priority:medium Medium priority task label Jan 2, 2020
@kunal768
Copy link
Member

kunal768 commented Jan 4, 2020

@shubham1172 this is yet to be done right ? shall i do this ?

@shubham1172
Copy link
Member Author

@kunal768, sure, go ahead!

@shubham1172
Copy link
Member Author

We should also consider changing the endpoint's name from signup to register since it makes more sense, given that a 3rd person is registering a user.

@shubham1172 shubham1172 added backend Back-end job priority:medium Medium priority task labels Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Back-end job priority:medium Medium priority task
Projects
None yet
Development

No branches or pull requests

2 participants