зеркало из https://github.com/nextcloud/desktop.git
Handle NeedToSignTermsOfService account state in file provider components
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
7e6ae848b0
Коммит
624ecbaefd
|
@ -581,6 +581,7 @@ void FileProviderDomainManager::slotAccountStateChanged(const AccountState * con
|
|||
break;
|
||||
case AccountState::SignedOut:
|
||||
case AccountState::AskingCredentials:
|
||||
case AccountState::NeedToSignTermsOfService:
|
||||
{
|
||||
// Disconnect File Provider domain while unauthenticated
|
||||
const auto trReason = tr("This account is not authenticated. Please check your account state in the %1 application.").arg(APPLICATION_NAME);
|
||||
|
|
|
@ -174,6 +174,7 @@ void FileProviderSocketController::slotAccountStateChanged(const AccountState::S
|
|||
case AccountState::SignedOut:
|
||||
case AccountState::AskingCredentials:
|
||||
case AccountState::RedirectDetected:
|
||||
case AccountState::NeedToSignTermsOfService:
|
||||
// Notify File Provider that it should show the not authenticated message
|
||||
sendNotAuthenticated();
|
||||
break;
|
||||
|
|
|
@ -101,6 +101,7 @@ void FileProviderXPC::slotAccountStateChanged(const AccountState::State state) c
|
|||
case AccountState::SignedOut:
|
||||
case AccountState::AskingCredentials:
|
||||
case AccountState::RedirectDetected:
|
||||
case AccountState::NeedToSignTermsOfService:
|
||||
// Notify File Provider that it should show the not authenticated message
|
||||
unauthenticateExtension(extensionAccountId);
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче