Skip to content
Permalink
Browse files

Introduce auth rejection type AuthenticatorFail

* introduce AuthenticatorFail into Reject proto
* use authenticator returncode -3 as AuthenticatorFail
  • Loading branch information...
hjf288 authored and Kissaki committed Apr 23, 2013
1 parent 46fc3cc commit 7cff8ca5d8415a54c9ec6b9e30e68fc498e4b738
Showing with 4 additions and 0 deletions.
  1. +1 −0 src/Mumble.proto
  2. +3 −0 src/murmur/Messages.cpp
@@ -45,6 +45,7 @@ message Reject {
UsernameInUse = 5;
ServerFull = 6;
NoCertificate = 7;
AuthenticatorFail = 8;
}
optional RejectType type = 1;
optional string reason = 2;
@@ -137,6 +137,9 @@ void Server::msgAuthenticate(ServerUser *uSource, MumbleProto::Authenticate &msg
} else if (id==-2 && ! qsPassword.isEmpty() && qsPassword != pw) {
reason = "Invalid server password";
rtType = MumbleProto::Reject_RejectType_WrongServerPW;
} else if (id==-3) {
reason = "Your account information can not be verified currently. Please try again later.";
rtType = MumbleProto::Reject_RejectType_AuthenticatorFail;
} else {
ok = true;
}

0 comments on commit 7cff8ca

Please sign in to comment.
You can’t perform that action at this time.