You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.
I don't think we're using the partner_service -- I think we're using the Devise Invitable gem instead. If you look at the /api/vi/partners_controller.rb you'll see that we are creating users via invite!
I tested this locally. I created a Partner from the rails console using Partner.invite!(email: "david.curtis@smashingboxes.com") - note: a bank_id and diaper_partner_id were not required. I was able to click on the link in the email, which then allowed me to set a password and log into the app.
If bank_id and diaper_partner_id are actually supposed to be required, then a bug should probably be logged. Otherwise, like Sean mentioned, I think the only thing left to do is determine whether or not you need the partner service (and I'm not familiar enough w/ this app yet to offer an opinion).
I also tried to create a partner manually without an email or password and received the errors @messages={:email=>["can't be blank"], :password=>["can't be blank"]}, so it seems like things may be set up correctly.
Pulled from a
TODO
in/app/services/partner_service.rb
:This may require adjustment of the Partner creation process, or a default secure password created that is emailed to the user.
The text was updated successfully, but these errors were encountered: