mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Remove unwanted check
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
2d842c7174
commit
ed278e3e5a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user