| 53 | } |
| 54 | |
| 55 | AccessManager::AuthDefinition AccessManager::createToken(const QString& comment) |
| 56 | { |
| 57 | const QString token = QUuid::createUuid().toString().mid(1, 36); |
| 58 | const QString id = QUuid::createUuid().toString().mid(1, 36).left(5); |
| 59 | |
| 60 | _authTable->createToken(token, comment, id); |
| 61 | |
| 62 | AuthDefinition def; |
| 63 | def.comment = comment; |
| 64 | def.token = token; |
| 65 | def.id = id; |
| 66 | |
| 67 | emit SignalTokenUpdated(getTokenList()); |
| 68 | return def; |
| 69 | } |
| 70 | |
| 71 | void AccessManager::savePipewire(const QString& wToken) |
| 72 | { |
no test coverage detected