mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-03 20:29:30 -05:00
Fix JSON API token removal
This commit is contained in:
parent
2ca36f5957
commit
0759359e06
@ -235,7 +235,8 @@ void JsonApiPage::addTokenClicked()
|
|||||||
void JsonApiPage::removeTokenClicked()
|
void JsonApiPage::removeTokenClicked()
|
||||||
{
|
{
|
||||||
QString token(ui.tokenLineEdit->text());
|
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;
|
QStringList newTk;
|
||||||
|
|
||||||
@ -251,4 +252,3 @@ void JsonApiPage::tokenClicked(const QModelIndex& index)
|
|||||||
{
|
{
|
||||||
ui.tokenLineEdit->setText(ui.tokensListView->model()->data(index).toString());
|
ui.tokenLineEdit->setText(ui.tokensListView->model()->data(index).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user