mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
force users to log out their unregistered session after logging in with a new registered account
This commit is contained in:
parent
1bee788210
commit
3bb1d9a1de
6 changed files with 10 additions and 3 deletions
|
|
@ -176,6 +176,7 @@ void MainWindow::serverError(ResponseCode r)
|
|||
{
|
||||
switch (r) {
|
||||
case RespWrongPassword: QMessageBox::critical(this, tr("Error"), tr("Invalid login data.")); break;
|
||||
case RespWouldOverwriteOldSession: QMessageBox::critical(this, tr("Error"), tr("There is already an active session using this user name.\nPlease close that session first and re-login.")); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue