From ed278e3e5a4e9d038a01720231232ff0d872057c Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 19 Aug 2021 20:41:24 +0530 Subject: [PATCH] Remove unwanted check Signed-off-by: RMidhunSuresh --- src/domain/login/PasswordLoginViewModel.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/domain/login/PasswordLoginViewModel.js b/src/domain/login/PasswordLoginViewModel.js index 32aef2dd..00707a0a 100644 --- a/src/domain/login/PasswordLoginViewModel.js +++ b/src/domain/login/PasswordLoginViewModel.js @@ -42,11 +42,6 @@ export class PasswordLoginViewModel extends ViewModel { async login(username, password) { const homeserver = this._homeserver; - if (!this._loginOptions.password) { - const path = this.navigation.pathFrom([this.navigation.segment("session")]); - this.navigation.applyPath(path); - return; - } this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription); if (this._loadViewModel) { this._loadViewModel = this.disposeTracked(this._loadViewModel);