#!/bin/bash -e
  
if [[ "${SFTPGO_AUTHD_USERNAME:=}" != "anonymous" ]]; then
  cat <<_EOF
{
  "status": 2,
  "to_verify": "${SFTPGO_AUTHD_PASSWORD:=}"
}
_EOF
else
  cat <<_EOF
{
  "status": 1
}
_EOF
fi
