Adjust method comment to match usage

* The ice authenticator API was changed to allow returning -3 on auths,
the method comment of Server::authenticate now reflects this change as well.
** See 88d41e10, 6e8c8939
* The surrounding code already checks for the return value -3
(caller of method Server::msgAuthenticate)
This commit is contained in:
Kissaki 2014-07-14 18:09:31 +02:00
parent 97cf80de70
commit cdcf77c06b

View File

@ -840,9 +840,8 @@ QMap<int, QString> Server::getRegistration(int id) {
return info;
}
// -1 Wrong PW
// -2 Anonymous
/// @return UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough),
/// -3 for authentication failures where the data could (temporarily) not be verified.
int Server::authenticate(QString &name, const QString &pw, int sessionId, const QStringList &emails, const QString &certhash, bool bStrongCert, const QList<QSslCertificate> &certs) {
int res = -2;