| 33 | } |
| 34 | |
| 35 | bool authorizeCode(QString code, AuthorizationLevel minAuthLevel, QString& errorMessageOut) |
| 36 | { |
| 37 | errorMessageOut.clear(); |
| 38 | |
| 39 | // write the authorization vars to the settings |
| 40 | GLOBAL(settings).proAuthCode = QT_NT(""); |
| 41 | GLOBAL(settings).authCode.clear(); |
| 42 | GLOBAL(settings).inviteCode.clear(); |
| 43 | |
| 44 | winOS->SaveSettingsFile(); |
| 45 | winOS->GetSettingsAppMessageHandler()->updateAuthorizationKey(); |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | bool validateAuthorization(AuthorizationLevel authLevel, QStringList authHashes) |
| 50 | { |
no test coverage detected