Skip to content

Fix initial user flow #5

@ddulic

Description

@ddulic

Currently have to exec into the container and target the register endpoint directly

docker exec -it supernote python3 -c "                                                                                                                                                          
  import hashlib, urllib.request, json
  pw = hashlib.md5(b'yourpassword').hexdigest()                                                                                                                                                   
  data = json.dumps({'email':'you@example.com','password':pw,'userName':'YourName'}).encode()
  req = urllib.request.Request('http://localhost:8000/api/user/register', data=data, headers={'Content-Type':'application/json'})
  print(urllib.request.urlopen(req).read())
  "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions