ianmartorell / meteor-accounts-ui-bootstrap-3

accounts-ui package with Bootstrap 3 and localization support
150 stars 109 forks source link

if there are more than one {{> loginButtons}}, one of them will always have "email not correct" error #67

Closed lionellei closed 9 years ago

lionellei commented 9 years ago

I have a {{> loginButtons}} in the navbar. And I have another one in the the bootstrap modal that shows up when I want to prompt the user to log in. However, the one in the modal always give email error even if I input the correct credential. If I remove the one in the navbar, then the one in the modal will work. Is there any work around?

ianmartorell commented 9 years ago

I've never tested using multiple {{> loginButtons}}, I'll do it as soon as I can. In the meantime, do you get any errors in the browser console?

ianmartorell commented 9 years ago

The way the package is written, it uses ids everywhere, and it checks the value of the email and password fields by looking up the element by id. That's why you always get email error on the template in the modal, because it's checking the empty fields in the other template. It wouldn't be easy to modify it to work with multiple instances. So basically no, there is no easy workaround...