summaryrefslogtreecommitdiff
path: root/src/login/LoginModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/LoginModel.cpp')
-rw-r--r--src/login/LoginModel.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/login/LoginModel.cpp b/src/login/LoginModel.cpp
index 7940cf0..185df68 100644
--- a/src/login/LoginModel.cpp
+++ b/src/login/LoginModel.cpp
@@ -24,17 +24,8 @@ void LoginModel::Login(string username, string password)
statusText = "Logged in";
loginStatus = true;
break;
- case LoginPasswordInvalid:
- statusText = "Username or Password incorrect";
- break;
- case LoginUsernameInvalid:
- statusText = "Username incorrect";
- break;
- case LoginBanned:
- statusText = "Banned: " + Client::Ref().GetLastError();
- break;
- default:
- statusText = "Error";
+ case LoginError:
+ statusText = "Error: " + Client::Ref().GetLastError();
break;
}
notifyStatusChanged();