mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
Fix JSON API token removal
This commit is contained in:
parent
2ca36f5957
commit
0759359e06
1 changed files with 16 additions and 16 deletions
|
@ -235,7 +235,8 @@ void JsonApiPage::addTokenClicked()
|
|||
void JsonApiPage::removeTokenClicked()
|
||||
{
|
||||
QString token(ui.tokenLineEdit->text());
|
||||
rsJsonApi->revokeAuthToken(token.toStdString());
|
||||
std::string tokenStr = token.toStdString();
|
||||
rsJsonApi->revokeAuthToken(tokenStr.substr(0, tokenStr.find_first_of(":")));
|
||||
|
||||
QStringList newTk;
|
||||
|
||||
|
@ -251,4 +252,3 @@ void JsonApiPage::tokenClicked(const QModelIndex& index)
|
|||
{
|
||||
ui.tokenLineEdit->setText(ui.tokensListView->model()->data(index).toString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue