dbug: print warning about passcode access

Also fixes typo, cleans up comment.
This commit is contained in:
Fang 2020-05-18 22:54:45 +02:00
parent edabe438d3
commit 2671fe71df
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -44,11 +44,20 @@
^- (quip card _this)
?: ?=(%noun mark)
?> (team:title [our src]:bowl)
[~ this(passcode !<((unit @t) vase))]
=/ code !<((unit @t) vase)
=/ msg=tape
?~ code
"Removing passcode access for debug interface."
"""
Enabling passcode access for debug interface. Anyone with this code can
view your applications' state, the people you've talked to, etc. Only
share with people you trust. To disable, run :dbug ~
"""
%- (slog leaf+msg ~)
[~ this(passcode code)]
?. ?=(%handle-http-request mark)
(on-poke:def mark vase)
=+ !<([eyre-id=@ta =inbound-request:eyre] vase)
:: !!
:_ this
%+ give-simple-payload:app:server eyre-id
%+ authorize-http-request:do inbound-request
@ -390,7 +399,7 @@
'heeds'^(set-array heeds from-duct)
==
::
:: json for known peer is structures to closely match the peer-state type.
:: json for known peer is structured to closely match the peer-state type.
:: where an index is specified, the array is generally sorted by those.
::
:: { life: 123,