diff options
author | Yuchen Pei <id@ypei.org> | 2024-10-12 22:43:25 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2024-11-05 11:14:53 +1100 |
commit | c2935342d40849488ce91cabe894e90f63311721 (patch) | |
tree | cc07f2750dda4d948dd76b44b21d74125351066b | |
parent | 77039a0a0519f5135000f3f86fb9993c2b76979c (diff) |
Fix LoginEnterAlternateIdentifierSubtask failure
-rw-r--r-- | exitter.el | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -167,14 +167,16 @@ :parser 'json-read :success (cl-function (lambda (&key data &allow-other-keys) - (cond - ((exitter-find-subtask data "LoginEnterPassword") - (message "LoginEnterPassword") - (exitter-enter-password flow-token headers)) - ((exitter-find-subtask data "LoginEnterAlternateIdentifierSubtask") - (message "LoginEnterAlternateIdentifierSubtask") - (exitter-enter-email flow-token headers)) - (t (message "Cannot find any matching subtasks"))) + (let ((new-flow-token + (alist-get 'flow_token data))) + (cond + ((exitter-find-subtask data "LoginEnterPassword") + (message "LoginEnterPassword") + (exitter-enter-password new-flow-token headers)) + ((exitter-find-subtask data "LoginEnterAlternateIdentifierSubtask") + (message "LoginEnterAlternateIdentifierSubtask") + (exitter-enter-email new-flow-token headers)) + (t (message "Cannot find any matching subtasks")))) )) :error (cl-function (lambda (&rest args &key error-thrown &allow-other-keys) |