From 38e9ddef40972c6d97462ebb0961d85cfcc6fbc2 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 3 Dec 2019 13:53:38 -0800 Subject: [PATCH] Add logging to help track down 401s during registration --- js/views/install_view.js | 2 +- libtextsecure/account_manager.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/js/views/install_view.js b/js/views/install_view.js index a893003a2..ec4d004de 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -195,7 +195,7 @@ 'confirmNumber: error clearing database', error && error.stack ? error.stack : error ); - finish(); + return finish(); }); }); }); diff --git a/libtextsecure/account_manager.js b/libtextsecure/account_manager.js index 5ca169b78..e94f6803a 100644 --- a/libtextsecure/account_manager.js +++ b/libtextsecure/account_manager.js @@ -422,6 +422,12 @@ ); await this.deviceNameIsEncrypted(); + window.log.info( + `createAccount: Number is ${number}, password has length: ${ + password ? password.length : 'none' + }` + ); + const response = await this.server.confirmCode( number, verificationCode,