From 511db54e95d02292417d7cd076e4bd6d50956d64 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Sun, 15 May 2016 00:52:50 +0200 Subject: tdf#87938 libcmis: Google 2FA implementation 2 Factor Authentication for Google Drive, changes: + parsing additional page with challenge - pin code verification + calling the interaction dialog requesting the code + dialog title changed to more general: Authentication Code + dialog shows url field only if not empty Change-Id: Idb3ebbad6a12849b9e50af87b46324bfbe966bab Reviewed-on: https://gerrit.libreoffice.org/25002 Tested-by: Jenkins Reviewed-by: David Tardon --- uui/source/authfallbackdlg.cxx | 5 ++++- uui/uiconfig/ui/authfallback.ui | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'uui') diff --git a/uui/source/authfallbackdlg.cxx b/uui/source/authfallbackdlg.cxx index 70ed1e7396d9..a6383d1e4e21 100644 --- a/uui/source/authfallbackdlg.cxx +++ b/uui/source/authfallbackdlg.cxx @@ -29,7 +29,10 @@ AuthFallbackDlg::AuthFallbackDlg(Window* pParent, const OUString& instructions, m_pBTOk->Enable(); m_pTVInstructions->SetText( instructions ); - m_pEDUrl->SetText( url ); + if( url.isEmpty() ) + m_pEDUrl->Hide(); + else + m_pEDUrl->SetText( url ); } AuthFallbackDlg::~AuthFallbackDlg() diff --git a/uui/uiconfig/ui/authfallback.ui b/uui/uiconfig/ui/authfallback.ui index a947ad4e24f2..6c99edfe04cb 100644 --- a/uui/uiconfig/ui/authfallback.ui +++ b/uui/uiconfig/ui/authfallback.ui @@ -5,7 +5,7 @@ False 6 - OneDrive Authentication Code + Authentication Code 400 270 dialog -- cgit