diff options
Diffstat (limited to 'examples/example_8_server/main.cpp')
| -rw-r--r-- | examples/example_8_server/main.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/example_8_server/main.cpp b/examples/example_8_server/main.cpp index 8dadcc18..ed1f814e 100644 --- a/examples/example_8_server/main.cpp +++ b/examples/example_8_server/main.cpp @@ -32,18 +32,11 @@ class passwordChecker : public QXmppPasswordChecker { - /// Checks that the given credentials are valid. - QXmppPasswordChecker::Error checkPassword(const QString &username, const QString &password) - { - if (username == USERNAME && password == PASSWORD) - return QXmppPasswordChecker::NoError; - else - return QXmppPasswordChecker::AuthorizationError; - }; - /// Retrieves the password for the given username. - bool getPassword(const QString &username, QString &password) + bool getPassword(const QString &username, const QString &domain, QString &password) { + Q_UNUSED(domain); + if (username == USERNAME) { password = PASSWORD; |
