mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
all: add pin protected deactivation
This commit is contained in:
committed by
Cuong Manh Le
parent
0826671809
commit
d822bf4257
@@ -27,3 +27,8 @@ func newControlClient(addr string) *controlClient {
|
||||
func (c *controlClient) post(path string, data io.Reader) (*http.Response, error) {
|
||||
return c.c.Post("http://unix"+path, contentTypeJson, data)
|
||||
}
|
||||
|
||||
// deactivationRequest represents request for validating deactivation pin.
|
||||
type deactivationRequest struct {
|
||||
Pin int64 `json:"pin"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user