summaryrefslogtreecommitdiff
path: root/uui/source/authfallbackdlg.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2016-05-23 19:49:31 +0200
committerSzymon Kłos <eszkadev@gmail.com>2016-05-23 19:56:54 +0200
commit5dee1106703a14c0128880736db77cd7507df776 (patch)
treebc24468b880c85fd18fa8105a26ab479cf648533 /uui/source/authfallbackdlg.cxx
parent7f07c69df4110db804fd47193135c19b249cbbed (diff)
Google 2FA: better info for user
Google sends SMS with code in format "G-XXXXXX". User should enter only numbers wihout "G-". + added "G-" label which is shown in the Google authentication code request before PIN field Change-Id: I8eaecbbe7b8803269444f947e97ee67c33db61b2
Diffstat (limited to 'uui/source/authfallbackdlg.cxx')
-rw-r--r--uui/source/authfallbackdlg.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/uui/source/authfallbackdlg.cxx b/uui/source/authfallbackdlg.cxx
index a6383d1e4e21..db0448e551ae 100644
--- a/uui/source/authfallbackdlg.cxx
+++ b/uui/source/authfallbackdlg.cxx
@@ -23,6 +23,7 @@ AuthFallbackDlg::AuthFallbackDlg(Window* pParent, const OUString& instructions,
get( m_pEDCode, "code" );
get( m_pBTOk, "ok" );
get( m_pBTCancel, "cancel" );
+ get( m_pFTGooglePrefixLabel, "google_prefix_label" );
m_pBTOk->SetClickHdl( LINK( this, AuthFallbackDlg, OKHdl) );
m_pBTCancel->SetClickHdl( LINK( this, AuthFallbackDlg, CancelHdl) );
@@ -30,9 +31,17 @@ AuthFallbackDlg::AuthFallbackDlg(Window* pParent, const OUString& instructions,
m_pTVInstructions->SetText( instructions );
if( url.isEmpty() )
+ {
+ // Google 2FA
+ m_pFTGooglePrefixLabel->Show();
m_pEDUrl->Hide();
+ }
else
+ {
+ // OneDrive
+ m_pFTGooglePrefixLabel->Hide();
m_pEDUrl->SetText( url );
+ }
}
AuthFallbackDlg::~AuthFallbackDlg()