SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Weird interaction between account settings and iPad/Safari and iPad/chrome save password feature.

Open AngelinaBelle opened this issue 12 years ago • 26 comments

Please use html5 form attribute autocomplete="off" to work around several buggy browsers that are over eager to jam a saved username into a form with a password field in it.


This is not a problem in 2.0.7. When I go to the account settings page, my ipad automatically replaces my email address with the username I used when I logged in.

Since I wanted to fix another field in that page, I decided I needed to fix the email address at the same time. SMF complained that I had changed my email address and would therefore be logged out.

But it did not log me out -- presumably because I had changed it to exactly what it had been before. image image image

image

AngelinaBelle avatar Jun 04 '14 17:06 AngelinaBelle

sounds like this may be a dup of #1191 which should be solved

illori avatar Jun 04 '14 17:06 illori

Not a dup. The primary issue is that SMF and Safari for iPad are not compatible here. So SMF is not iOS friendly. Can any MAC users report in?

Safari thinks the email input field is meant for my username, and so automatically fills in the username it just remembered for me for this site. It also automatically fills in my password at the bottom of the page.

Can the page tell Safari not to try this trick on this page, or would the fix involve renaming the input field.

The confusing bit about the changed but unchanged email address is just baggage; the email address was changed back to its database value by the time I submitted the form.

AngelinaBelle avatar Jun 04 '14 18:06 AngelinaBelle

looking at the code for that element i might be willing to say this is an issue with your browser and not smf.

<input id="email_address" class="input_text" type="email" value="[email protected]" size="30" name="email_address">

illori avatar Jun 04 '14 21:06 illori

Issue with Safari for iPad. IOS 7.1.1 not compatible with that page. Don't know about chrome.

AngelinaBelle avatar Jun 04 '14 21:06 AngelinaBelle

http://webcache.googleusercontent.com/search?q=cache%3Ahttp%3A%2F%2Fcache.nevkontakte.com%2Fproxy.html#!go/http%3A%2F%2Fbasics4mac.com%2Farticle.php%2Fautofill_bug_workaround makes it seem like this may be an issue with the auto fill on your device

illori avatar Jun 04 '14 21:06 illori

This is not related to autofilling from my contacts; I have that setting turned off. This problem occurs in Safari and chrome 35.1916.38 but not opera mini 7.05.45389 This can be a problem for iOS 7.1.1 users.

Two browsers recognize the email input field in account settings as being the same as the username input field in ?action=login

AngelinaBelle avatar Jun 05 '14 01:06 AngelinaBelle

and it is not trying to auto fill from any other source? since no one else has reported this i think it is an issue with how your browser is configured and not an smf issue.

illori avatar Jun 05 '14 09:06 illori

Not seeing this problem elsewhere.

I beg. I beg. I beg others to turn on "save passwords" and test this feature in a variety of platforms rather than telling me it is not an issue for iPad users

AngelinaBelle avatar Jun 05 '14 11:06 AngelinaBelle

I'm currently using Windows Phone 8.1 - IE, that part is empty.

XinYenFon avatar Jun 05 '14 12:06 XinYenFon

Email goes empty? That is weird

AngelinaBelle avatar Jun 05 '14 12:06 AngelinaBelle

Not email Current pass part :) Also i don't see any problem with mail part too.

XinYenFon avatar Jun 05 '14 12:06 XinYenFon

Glad ie gets it right. How hard would it be to <form autocomplete="off"> ? This would accommodate buggy Safari and chrome browsers on iPad and iPhone and who knows where else.

AngelinaBelle avatar Jun 05 '14 13:06 AngelinaBelle

Seems reasonable to me. Firefox wants to suggest usernames for that field as well (though it doesn't automatically fill it in since I have several accounts on my test board). It's probably better for security anyway.

Oldiesmann avatar Jun 05 '14 15:06 Oldiesmann

This change did not fix the problem. Can it be listed as a known issue -- Safari and Chrome for iOS and can be given as the source of the problem.

This is NOT a problem in 2.0.7-- in2.0.7, the browser tries to change the user display name

AngelinaBelle avatar Jun 09 '14 11:06 AngelinaBelle

then that means on that forum you can change your display name, you should test apples to apples on a forum where you can not change the display name

illori avatar Jun 09 '14 11:06 illori

I did not understand your communication above, Illori. I will attempt to clarify my statement above that, and hope for the best. I am remarking that the fix did not solve the issue

  • oldiesmann's Fix #1764 did not fix the problem; perhaps it should be listed as a known issue

Just for reference, to compare to behavior of the current stable version:

  • I double-checked with the same browsers on SimpleMachines.org, which is running. 2.0.7, and noted that, on that forum, with the same browser, iOS autocomplete attempts to change the users display name rather than the email.

AngelinaBelle avatar Jun 09 '14 12:06 AngelinaBelle

AB check that on the forum you are testing on you can modify your dispay name, if you can not, then it is not a valid test compared to SM.org where you can modify your display name.

illori avatar Jun 09 '14 13:06 illori

also have you confirmed that your test forum has updated to a revision that includes the changes oldies made?

illori avatar Jun 09 '14 13:06 illori

  • on test2.turtleshelllprod.com, I am able to modify my display name.
  • before testing, I checked the admin log to see that upgrade had been run 3 days after the commit date given above.

AngelinaBelle avatar Jun 09 '14 13:06 AngelinaBelle

If it's still an issue even after that change, it means that the attribute isn't supported by iOS. Unfortunately there's not a lot we can do in that situation.

Oldiesmann avatar Jun 10 '14 15:06 Oldiesmann