diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/example_8_server/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/example_8_server/main.cpp b/examples/example_8_server/main.cpp index ed1f814e..bd24ebda 100644 --- a/examples/example_8_server/main.cpp +++ b/examples/example_8_server/main.cpp @@ -33,16 +33,16 @@ class passwordChecker : public QXmppPasswordChecker { /// Retrieves the password for the given username. - bool getPassword(const QString &username, const QString &domain, QString &password) + QXmppPasswordChecker::Error getPassword(const QString &username, const QString &domain, QString &password) { Q_UNUSED(domain); if (username == USERNAME) { password = PASSWORD; - return true; + return NoError; } else { - return false; + return AuthorizationError; } }; |
