certat / do-portal

This project is in maintenance mode and will only receive bug fixes, but no new features. A new version of this software is being developed.
5 stars 5 forks source link

Contacts: Empty password sent if filled in and removed #107

Closed ghost closed 4 years ago

ghost commented 5 years ago

This also makes the software incompatible with password managers' auto fill features

davewood commented 4 years ago

commit d285f82b848c3fe3ca2f42fa1839f07b550afad8
Author: David Schmidt mail@davidschmidt.at
Date: Mon Dec 16 15:05:56 2019 +0100
dont send empty user.password property

"This also makes the software incompatible with password managers' auto fill features"
How so?

certrik commented 4 years ago

@wagner-certat Please comment and close if solved.

ghost commented 4 years ago

"This also makes the software incompatible with password managers' auto fill features" How so?

Because the auto-fill features write the credentials into the password field (which is not a login), then the user removes the filled in password manually.

ghost commented 4 years ago

On the testing instance, at 7928cfcacfa130a2903e5ccd8d730841d5f08e86 I get an error on clicking the Save button for newly created contacts:

TypeError: "a is undefined" o https://cp-aec-tst.cert.at/scripts/scripts.c067fafe.js:1 x https://cp-aec-tst.cert.at/scripts/scripts.c067fafe.js:1 i https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 k https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:6 $digest https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:6 $apply https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:6 g https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 r https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 onload https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 Possibly unhandled rejection: {} vendor.f2ab560e.js:5:25687 e https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 get https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 j https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:6 $digest https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:6 $apply https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:6 g https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 r https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5 onload https://cp-aec-tst.cert.at/scripts/vendor.f2ab560e.js:5

And for existing contacts and editing them, same behavior as before.

davewood commented 4 years ago

i repeated these steps:

this are the request params that were sent:

{
"user":{
   "email":"asdf2@asdf2.at",
   "name":"asdfasdf"
},
"organization_membership":{
   "membership_role_id":7,
   "organization_id":9
}
}

no error and I got a notification that the user was added.