These are chat archives for reactioncommerce/reaction

3rd
Jun 2016
J T
@wytanj
Jun 03 2016 09:45
hey guys where should my REACTION_USER / REACTION_AUTH / REACTION_EMAIL sit for a production copy?
searched this channel, and it seems that it varies from being an ENV, to settings.json etc
Valery Orloff
@valorloff
Jun 03 2016 12:09
@wytanj , maybe in ./.meteor/local/isopacks/reactioncommerce_core/os/server/registry/defaultAdmin.js?
./packages/reaction-core/server/registry/defaultAdmin.js
Valery Orloff
@valorloff
Jun 03 2016 12:19
guys, how to skip payment stage in checkout process? if i turn off all payments, then user can't finish order!
I would even satisfied with replace the GenericPaymentForm template to simple html info. Is it possible to fix it in one place of RC code?
Spencer Norman
@spencern
Jun 03 2016 15:27
Our password reset flow isn’t working (no email getting sent), is there a way to manually reset a password w/ db access?
Spencer Norman
@spencern
Jun 03 2016 15:53
For anyone else searching for this, the password reset token is stored in the db and you can manually send the reset link w/ token to a user.
https://example.com/#/reset-password/TOKEN
For us the issue was that the password reset email is trying to come from hello@reactioncommerce.com instead of our email and our transactional email provider was blocking it as it’s not a verified address.
Spencer Norman
@spencern
Jun 03 2016 16:16
I’m having trouble figuring out what is triggering the password reset email though, it doesn’t seem to be triggered from the Accounts package, is this basic Meteor functionality?
Spencer Norman
@spencern
Jun 03 2016 16:23
And if so, how do I change the email template and/or the from: address.
Mike Murray
@mikemurray
Jun 03 2016 21:19
@spencern resetting password is default meteor functionality. Are you still needing assistance with this?
Spencer Norman
@spencern
Jun 03 2016 21:19
Yeah, haven’t figured it out yet
The only real issue that I can figure out is that the sent from address is hello@reactioncommerce.com
which our mail provider blocks because it’s not one of our addresses
Mike Murray
@mikemurray
Jun 03 2016 21:21
makes sense, and yea, we should make sure its easily changable
Spencer Norman
@spencern
Jun 03 2016 21:22
any idea where that would be coming from?
Mike Murray
@mikemurray
Jun 03 2016 21:22
searching now
it might be in reaction.json or some other fixture file
Spencer Norman
@spencern
Jun 03 2016 21:25
yeah, I looked through the fixtures and couldn’t find any reference to that
Mike Murray
@mikemurray
Jun 03 2016 21:35
@spencern do you have the launchdock-connect package enabled? I found this with a grep ./packages/launchdock-connect/server/email.js:Accounts.emailTemplates.from = "Reaction Commerce <hello@reactioncommerce.com>"; Because atom like to hide files from me :(
Spencer Norman
@spencern
Jun 03 2016 21:35
It does look like launchdock-connect is here
Mike Murray
@mikemurray
Jun 03 2016 21:36
seems, though, you can set it with Accounts.emailTemplates.from
Spencer Norman
@spencern
Jun 03 2016 21:36
via db?
Mike Murray
@mikemurray
Jun 03 2016 21:36
it seems hard coded, which is not ideal
checking the email templates
Spencer Norman
@spencern
Jun 03 2016 21:37
oh, yeah, probably not. I do think it’s probably the launchdock thing too
makes sense because I couldn’t find it and it’s not included in packages/ by default
so we’re loading the atmosphere version I guess
Mike Murray
@mikemurray
Jun 03 2016 21:37
ah
Spencer Norman
@spencern
Jun 03 2016 21:37
What will happen if we don’t load launchdock-connect at all?
Mike Murray
@mikemurray
Jun 03 2016 21:39
nothing should happen
Spencer Norman
@spencern
Jun 03 2016 21:40
but if that’s the only place email is defined, will that affect the default email templates?
Mike Murray
@mikemurray
Jun 03 2016 21:42
hmm
check settings in the dashboard
it seems it uses the shop name and shop email
Spencer Norman
@spencern
Jun 03 2016 21:42
settings in dashboard have our email
Mike Murray
@mikemurray
Jun 03 2016 21:42
under core
Spencer Norman
@spencern
Jun 03 2016 21:43
yeah
Mike Murray
@mikemurray
Jun 03 2016 21:43
hmm
looking at the wrong method. The function I was looking at "accounts/sendWelcomeEmail"and it was using the enteires for the DB
but the reset password is handeled by meteor... so somewhere there is a config that might be messing that up
Spencer Norman
@spencern
Jun 03 2016 21:47
yeah, that’s where I was confused. Not really sure where Meteor is getting it’s from email
We don’t have a default settings file (maybe we should?) as we set most things via ENV variables
Mike Murray
@mikemurray
Jun 03 2016 21:48
isn't there a meteor variable for from email?
Spencer Norman
@spencern
Jun 03 2016 21:48
perhaps
meteorpedia doesn’t list any
Mike Murray
@mikemurray
Jun 03 2016 21:49
found it! in meteor's source code
so the way launchdock was doing it was correct
Spencer Norman
@spencern
Jun 03 2016 21:50
interesting
so we just need to remove launchdock
and then add a line to specify somewhere in our code
Mike Murray
@mikemurray
Jun 03 2016 21:50
and set Accounts.emailTemplates.resetPassword.from = "someone@getourfitted.com"
Spencer Norman
@spencern
Jun 03 2016 21:50
should this be done in an init() function
Mike Murray
@mikemurray
Jun 03 2016 21:51
i seems it can just be anywhere.
just some global var
Spencer Norman
@spencern
Jun 03 2016 21:51
does launchdock set this for more than resetPassword or is this the only template that it does this for?
k
Mike Murray
@mikemurray
Jun 03 2016 21:52
so far it seems only for launchdock things itself and meteor specific accounts functions
like resetPassword
our other methods that mail users, use settings from shop settings
Spencer Norman
@spencern
Jun 03 2016 21:52
:+1:
Mike Murray
@mikemurray
Jun 03 2016 21:54
making an issue
Mike Murray
@mikemurray
Jun 03 2016 22:03
@spencern reactioncommerce/reaction#1061 think thats the issue, and whats happening