From c4817e9ee91a80f28e33fb86328dcc45804677ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 15 Jan 2020 11:36:33 +0100 Subject: [PATCH] =?UTF-8?q?DEV:=20lint=20=F0=9F=92=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/discourse/controllers/login.js.es6 | 3 ++- .../javascripts/discourse/controllers/password-reset.js.es6 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/login.js.es6 b/app/assets/javascripts/discourse/controllers/login.js.es6 index c90a1b07f77..fe57a856ec5 100644 --- a/app/assets/javascripts/discourse/controllers/login.js.es6 +++ b/app/assets/javascripts/discourse/controllers/login.js.es6 @@ -120,7 +120,8 @@ export default Controller.extend(ModalFunctionality, { data: { login: this.loginName, password: this.loginPassword, - second_factor_token: this.securityKeyCredential || this.secondFactorToken, + second_factor_token: + this.securityKeyCredential || this.secondFactorToken, second_factor_method: this.secondFactorMethod, timezone: moment.tz.guess() } diff --git a/app/assets/javascripts/discourse/controllers/password-reset.js.es6 b/app/assets/javascripts/discourse/controllers/password-reset.js.es6 index f423f0bff93..6e551a83014 100644 --- a/app/assets/javascripts/discourse/controllers/password-reset.js.es6 +++ b/app/assets/javascripts/discourse/controllers/password-reset.js.es6 @@ -52,7 +52,8 @@ export default Controller.extend(PasswordValidation, { type: "PUT", data: { password: this.accountPassword, - second_factor_token: this.securityKeyCredential || this.secondFactorToken, + second_factor_token: + this.securityKeyCredential || this.secondFactorToken, second_factor_method: this.secondFactorMethod } })