Skip to content

Commit

Permalink
fix #2530 (#2532)
Browse files Browse the repository at this point in the history
  • Loading branch information
joernu76 authored Sep 18, 2024
1 parent 457ff08 commit e33f8e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mslib/msui/mscolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def disconnect_handler(self):
self.set_status("Info", 'Disconnected from server.')

def login_handler(self):
self.loginBtn.setEnabled(False)
data = {
"email": self.loginEmailLe.text(),
"password": self.loginPasswordLe.text()
Expand All @@ -380,6 +381,7 @@ def login_handler(self):
# show status indicating about wrong credentials
self.set_status("Error", 'Invalid credentials. Fix them, create a new user, or '
f'<a href="{url_recover_password}">recover your password</a>.')
self.loginBtn.setEnabled(True)
else:
self.save_user_credentials_to_config_file(data["email"], data["password"])
self.mscolab.after_login(data["email"], self.mscolab_server_url, r)
Expand Down

0 comments on commit e33f8e3

Please sign in to comment.