~dobey/ubuntuone-credentials/signon-plugin-part2

« back to all changes in this revision

Viewing changes to libubuntuoneauth/authenticator.cpp

  • Committer: Rodney Dawes
  • Date: 2016-06-16 20:16:17 UTC
  • Revision ID: rodney.dawes@canonical.com-20160616201617-kbl1a428krm2ov02
The login() call should never emit credentialsNotFound.
Don't emit an error in existingCredentialsId if there is no account.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
 
90
90
    if (accountIds.isEmpty()) {
91
91
        qDebug() << "authenticate(): No UbuntuOne accounts found";
92
 
        Q_EMIT error(AccountNotFound, "");
93
92
        return 0;
94
93
    }
95
94