Update login scripts, add script for XHR login interface.

[?]
Oct 6, 2020, 3:47 AM
Z7CQXTU7NE5TPNLSYN3IQQBSY7IFPCXT3IHVUUSSQCBT24PIXWSAC

Dependencies

  • [2] NJNMO72S Add zcash.com submodule and update client to modern halogen.
  • [*] PBD7LZYQ Postgres & auth are beginning to function.

Change contents

  • file addition: login-xhr.sh (---r------)
    [4.1220]
    #!/bin/bash
    if [ -f ".env" ]; then
    source .env
    fi
    if [ -z "${AFTOK_HOST}" ]; then
    AFTOK_HOST="aftok.com"
    fi
    if [ -z "${USER}" ]; then
    read -p "Username: " USER
    echo
    fi
    if [ -z "${PASS}" ]; then
    read -sp "Password: " PASS
    echo
    fi
    curl --verbose \
    --request POST \
    --data "{\"username\": \"${USER}\", \"password\":\"${PASS}\"}" \
    "https://$AFTOK_HOST/api/login"
  • replacement in scripts/login.sh at line 16
    [2.309908][2.309908:309982]()
    curl --verbose --insecure --user $USER \
    --request POST \
    --data '' \
    [2.309908]
    [2.309982]
    curl --verbose --user $USER \
  • edit in scripts/login.sh at line 18
    [2.310016][2.310016:310017]()