MCPcopy Create free account
hub / github.com/bumptop/BumpTop / authorizeCode

Function authorizeCode

trunk/win/Source/BT_Authorization.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35bool 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
49bool validateAuthorization(AuthorizationLevel authLevel, QStringList authHashes)
50{

Callers 1

onMouseUpMethod · 0.85

Calls 4

SaveSettingsFileMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected