diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp index a0db88d18..819dc459d 100644 --- a/src/murmur/ServerDB.cpp +++ b/src/murmur/ServerDB.cpp @@ -840,9 +840,8 @@ QMap 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 &certs) { int res = -2;