f051b0be0b
TL;DR: - Since POST /login is more rigorous, our accounts.csv needs to contain validly hashed passwords; you can use tests/create-accounts.sh to create dummy accounts I still need to test the login flow and support: - Tracking failed attempts (three maximum) - Verifying accounts by sending emails to the users
21 lines
408 B
Bash
Executable file
21 lines
408 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# This script populates the Accounts table over HTTP.
|
|
|
|
http POST :3000/accounts \
|
|
username=mimi \
|
|
password=testing \
|
|
email=miriamwright@google.com \
|
|
role=user
|
|
|
|
http POST :3000/accounts \
|
|
username=bill \
|
|
password=testing \
|
|
email=wpcarro@gmail.com \
|
|
role=manager
|
|
|
|
http POST :3000/accounts \
|
|
username=wpcarro \
|
|
password=testing \
|
|
email=wpcarro@google.com \
|
|
role=admin
|