Skip to content

Commit 3ead15c

Browse files
committed
Clear password after sending request
* jupyter-rest-api.el (jupyter-api-authenticate): Do it.
1 parent adbc9ed commit 3ead15c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter-rest-api.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ attempt. If CLIENT could not be authenticated raise an error."
584584
jupyter-api-request-headers))
585585
(jupyter-api-request-data
586586
(concat "password=" (url-hexify-string (funcall passwd)))))
587-
(jupyter-api-login client)))))
587+
(unwind-protect
588+
(jupyter-api-login client)
589+
(clear-string jupyter-api-request-data))))))
588590
(oset client auth t))
589591

590592
(cl-defmethod jupyter-api-authenticate ((client jupyter-rest-client) (_auth (eql token)))

0 commit comments

Comments
 (0)