Skip to Content Skip to Menu

[SOLVED] Editing profile - password autocompletes

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 509
  • Thanks: 42
  • Karma: 2
10 years 1 month ago - 10 years 1 month ago #249128 by AlanJones
Not sure if I'm doing something wrong.

When a user edits their profile with an address change, the first field of the password autofills with their browser (or password software).
So when they try update then the profile kicks back an error because the password confirm was not filled in. then they get confused.

Is there some way to prevent autofill of the password field while in profile edit mode?

Thanks!

J2.5.24
CB 1.9.1

Own Your Own Community!
Last edit: 10 years 1 month ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 1 month ago #249169 by krileon
Replied by krileon on topic Editing profile - password autocompletes
Tell your browser not to auto fill it. We already set autocomplete="off", but your browser (or if you've a password saving extension) is ignoring it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 509
  • Thanks: 42
  • Karma: 2
10 years 1 month ago #249181 by AlanJones
Replied by AlanJones on topic Editing profile - password autocompletes
Yes, as I said, it's not for me, it's for users of my sites; those updating their own profile who are getting confused.
And a lot of people have password extensions now. They don't necessarily understand how to control them but they have them because they are worried about security.

2 Questions:
1. If I were to put the password into it's own Tab would it still autofill when users are updating?
I think it probably would. I'll try anyway.

2. Could I change the name of the Password field without disrupting the code?
Maybe if the field was named "Your Password" the autofill would leave it alone?

Thanks
Alan

Own Your Own Community!

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 1 month ago #249187 by krileon
Replied by krileon on topic Editing profile - password autocompletes

Yes, as I said, it's not for me, it's for users of my sites; those updating their own profile who are getting confused.
And a lot of people have password extensions now. They don't necessarily understand how to control them but they have them because they are worried about security.

It's browser or browser extension behavior. So there's not much that can be done about it. Standard browser auto complete (no extension) should respect the attribute (they don't have to though), but extensions don't have to (e.g. LastPass doesn't care about the attribute). The attribute didn't become standard until HTML5 so until then browsers didn't even need to treat it as if it existed.

1. If I were to put the password into it's own Tab would it still autofill when users are updating?

Yes, the browser doesn't care where it's at. It finds it in the DOM and changes the value.

2. Could I change the name of the Password field without disrupting the code?

No, that's a core field and you can't change the name without causing a chain of bugs. It wouldn't matter anyway as the browser would learn the new input name and then you're full circle with the same issue. A lot of browser extensions don't even care what the name is and are purely looking for password type.

Maybe if the field was named "Your Password" the autofill would leave it alone?

No.

Probably the only solution is some sort of weird JS solution that trys to empty the field after the page is done loading. Whether that works or not I've no idea though as browser behavior typically kicks in after the page has loaded so it may not do anything at all.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: AlanJones

Please Log in or Create an account to join the conversation.

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 509
  • Thanks: 42
  • Karma: 2
10 years 1 month ago #249204 by AlanJones
Replied by AlanJones on topic Editing profile - password autocompletes
Thank you Krileon! That makes sense to me.

Own Your Own Community!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum