![]() ![]() $(PrimeFaces.escapeClientId('frmLogin:password')).replaceWith('') $(PrimeFaces.escapeClientId('frmLogin:usuario')).replaceWith('') Tested work in Chrome and Internet Explorer but in mozilla firefox (though not in Firefox) This worked for me on Firefox and Chrome as of. $('#password').hide().prop('type', 'text') // this prevents saving $(this).prop('type', password') // this stops pre-saved password offers This could be made to look prettier by adding another text field when the password field disappears, but that's cosmetic only. Second, just before submitting the form, set the password form back to being a text field, but hide it first so the password can't be seen. I'm using jQuery, but the principle can be translated into regular JavaScript as well.įirst, have your password field start as a text field and have JavaScript change it later - this gives a decent chance that the browser won't offer a saved password. So I combined two solutions I found on various stackoverflow posts and thought I'd post them here. The browser will ask to save the entered tech password.The browser will recommend a login from the rest of the page which gets in the way.The unfortunate part is that they did not provide an option under Chrome's Settings panel to disable it.I had two issues with how browsers force their password behavior on you when working on a support-only login page within a regular page (the support login should never be saved): At some point in the recent past, Google apparently decided to enable IWA by default. IWA used to be turned off by default in Chrome you had to enable it via a checkbox in your Internet Options (shared with IE). (Thank you, Daniel Trimble!) Integrated Windows Authentication was the culprit. I even visited a password-protected page in an Incognito window, but Chrome still signed me in automatically.įinally I found this Stack Overflow page, which solved the problem. Start by clearing your saved passwords ( Chrome menu button > Settings > Show advanced settings > Passwords and forms > Manage passwords).Ĭlearing my saved passwords didn't work for me, so I tried other things: cleared the cache, removed all cookies, reset Chrome's settings, uninstalled and reinstalled Chrome. ![]() If something similar is happening to you, there are other, more obvious things you should try first. Whenever I navigated to a password-protected page, instead of giving me a login prompt, Chrome would automatically sign me in to Microsoft SharePoint (my company's content-management system) and show me the "logged in" version of that page. Suddenly, one day, I could no longer stay signed out of my company's website in Chrome. Generally I log into our site in Firefox or IE, make changes there, and then view the site in Chrome to make sure my changes were "published" as intended. The problem is that you may not want to be automatically logged into a particular website.Įxample: I like to use Chrome as a test browser to see the "public" view of my company's website. This occurs behind the scenes, without a visible password prompt. What is Integrated Windows Authentication, and why would you want to disable it?īasically, Integrated Windows Authentication allows a browser such as Chrome to access credentials that are stored on your computer (for example, the password you use to log into your office computer) and use those same credentials to log you into a website (for example, a password-protected portion of your company's website). I would like to help more people find this useful answer by adding a little more context. Expanding on Daniel Trimble's answer, which worked for me: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |