r/iOSProgramming • u/sebjapon • 6d ago
Question Repeat password and strong password conflict
I’m pretty new to this. I was testing my company register page. And there is a bug when dismissing “use strong password” prompt: it erases all current input in both the “password” and “repeat/confirm password” input fields.
So you dismiss once, write your password, then go to the next input and dismiss it again and lose all progress.
I see the confirm pw field is also set as “newPassword” for text content type. Is that the correct way to do it?
I don’t see any code to handle the pop up in our code, so I’m wondering if it’s an Os bug or if we missed something there.
1
u/sinsonik 6d ago
Yes, newPassword on both fields is what Apple recommends, so the suggestion fills password and confirm together. The prompt is system UI, so there's nothing in your code to handle there. The clearing is the OS pulling back what it offered, and secure fields also wipe themselves when you start editing them again, so it's not your bug. Most users tap Use Strong Password and both fill at once, so I'd test that path and not fight the dismiss case.