Skip to content

Commit

Permalink
Handle Security Key button click
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Oct 20, 2023
1 parent 415fa9e commit a431bbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ public void onClick(View v) {

mSecurityKeyButton = rootView.findViewById(R.id.login_security_key_button);
mSecurityKeyButton.setOnClickListener(view -> {

mAnalyticsListener.trackContinueWithSecurityKeyClicked();
doAuthWithSecurityKeyAction();
});
}

Expand Down Expand Up @@ -330,6 +331,14 @@ private void doAuthAction(@StringRes int messageId, String twoStepCode, boolean
}
}

private void doAuthWithSecurityKeyAction() {
if (!NetworkUtils.checkConnection(getActivity())) {
return;
}


}

private String getAuthCodeFromClipboard() {
ClipboardManager clipboard = (ClipboardManager) getActivity().getSystemService(CLIPBOARD_SERVICE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ interface LoginAnalyticsListener {
fun trackConnectedSiteInfoSucceeded(properties: Map<String, *>)
fun trackFailure(message: String?)
fun trackSendCodeWithTextClicked()
fun trackContinueWithSecurityKeyClicked()
fun trackSubmit2faCodeClicked()
fun trackSubmitClicked()
fun trackRequestMagicLinkClick()
Expand Down

0 comments on commit a431bbc

Please sign in to comment.