private VerticalLayout createDisableGoogleAuthButton ( ) { final VerticalLayout formLayout = new VerticalLayout ( ) ; formLayout . setSizeFull ( ) ; final Panel formPanel = new Panel ( ) ; formPanel . setSizeFull ( ) ; formLayout . addComponent ( formPanel ) ; final FormLayout formContent = new FormLayout ( ) ; formPanel . setContent ( formContent ) ; final DisableGoogleAuthenticatorCredentialRequest request = new DisableGoogleAuthenticatorCredentialRequest ( ) ; request . setSessionId ( RequestContextHolder . currentRequestAttributes ( ) . getSessionId ( ) ) ; request . setUserpassword ( "" ) ; final ClickListener listener = new DisableGoogleAuthenticatorCredentialClickListener ( request ) ; getFormFactory ( ) . addRequestInputFormFields ( formContent , request , DisableGoogleAuthenticatorCredentialRequest . class , AS_LIST , DISABLE_GOOGLE_AUTHENTICATOR , listener ) ; return formLayout ; }
Creates the disable google auth button .