• Hi,

    I setup the plugin with Gmail using an “App Password”.

    I keep seeing this notice and I can’t get rid of it:

    To help keep your account secure, Google will no longer support using third-party apps to sign in to your Google Account using only your username and primary password. You can switch to the Auth 2.0 alternative or use your App Password option to continue.

    This link

    Click here for more info

    works correctly: the href is set.

    This link

    I understand and would like to discard this notice

    does nothing! The href is empty, so it just reloads the page!
    Similarly, the X in the top-right corner of the notice is useless: it hides the notice only until the next refresh.

    Is there some missing configuration option? Emails work correctly so I can’t find any other problem.

    Thank you,
    Nicolò

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nicosemp

    (@nicosemp)

    Digging a little more and I found that the button with ID discard-less-secure-notification is supposed to have an onclick listener from this code inside PLUGIN/script/postman.js:

    //Discard less secure notification
    	$( document ).on( 'click', '#discard-less-secure-notification', function( e ) {
    		e.preventDefault();
    
    		$.ajax( {
    			type: 'POST',
    			url: ajaxurl,
    			data: {
    				action: 'ps-discard-less-secure-notification',
    				_wp_nonce: postman_ajax.lessSecureNotice
    			},
    			success: function(data) {
    				$( '.ps-less-secure-notice .notice-dismiss' ).click();
                },
    			error: function(data) {debugger
                    alert( data.responseJSON.data.message );
                },
    		} )
    
    		$( '.ps-less-secure-notice .notice-dismiss' ).click();
    	} )

    However this doesn’t work for some reason, so I tried running the javascript code manually from the console and got the $ is undefined error.

    So that must be the problem: I tried running it again substituting $ with jQuery and it worked. The notice disappeared and is not appearing anymore.

    Please fix the plugin using jQuery instead of $.

    Plugin Support M Haseeb

    (@haseeb0001)

    Hi @nicosemp

    Hope you are doing good.

    Thanks for updating us, let me share it with my senior technical team, they will look into it soon.

    Thanks

    Thread Starter nicosemp

    (@nicosemp)

    Hi,
    Thank you for looking into this.

    Just to be clear: I am sure that the code I copied is the one that is supposed to run, but I don’t know why the onclick listener didn’t run.
    It might be a different problem then just substituting jQuery/$.

    Plugin Support M Haseeb

    (@haseeb0001)

    @nicosemp

    Thanks for updating us, the team is looking into it and we test and update this soon.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t discard notice about “Google third-party apps sign in”’ is closed to new replies.