accounts-ui icon indicating copy to clipboard operation
accounts-ui copied to clipboard

When switching from sign in to register, a filled in password gets exposed

Open mauritslamers opened this issue 7 years ago • 3 comments

When a user fills in his credentials in the "default" mode (which is sign in), and then realizes he should have made a new account instead and clicks on register, the purpose of the fields changes, but the contents is not updated accordingly.

The second field is the password field, but becomes the e-mail field. When a user has already filled in something and then clicks on register, the password mask is removed, and the password is exposed.

What I would have expected is that either the fields are made empty, or that the contents of the fields is moved according with the purpose change of the fields.

Perhaps it would be wise not to reuse the fields, but to create two text fields which can only be used for login and three text fields which are used for the registration process, and keep the data separate accordingly.

mauritslamers avatar Jan 04 '17 16:01 mauritslamers

What version are you on? We had a solution for this, but this could be a regression in that case.

timbrandin avatar Jan 06 '17 10:01 timbrandin

Version 1.1.9 according to the contents of ~/.meteor/packages/accounts-ui

mauritslamers avatar Jan 06 '17 20:01 mauritslamers

Could you try this on the latest version 1.2.16, we did some work on remembering previously entered values to fields in around 1.2.10. @mauritslamers

timbrandin avatar Jan 07 '17 11:01 timbrandin