Spree Forgot password - spree

I've installed spree on my app and have currently running live.
On my local machine the app seems to work fine and when I try to use forgot password I go to the confirmation page. But on my live server, I get the error 500 screen.
I Installed the spree mailer gem for my backed and put in the smpth information, but when I try to test it I get the following error (The change you wanted was rejected.
Maybe you tried to change something you didn't have access to.)
Can anyone tell me how to setup the spree mail and forgotten passwords?

Contacted server provider and they added a server certificated to my mail server resolving the problem.

Related

Problem in hosting Django REST API on IIS

I was trying to host django REST API on IIS but it wasn't working properly. I worked with the same locally and it was working absolutely fine.
But when I hosted it on IIS then first of all its homepage with get method for all data from the database takes longer time to load and ended up with timeout error. And, when I tried to access other pages, the same problem occurred with them too. Only a page with post method opened but when I tried to submit data it raised an error.
I checked server configuration then I found that default error is timeout error. Now I am confused about why such things happened.
Can anyone please tell me if they faced similar issue or if they know some kind of compatibility issue or some prerequisite for hosting REST API using Django REST Framework? Or help me how can I find and fix the issue.
Are you using FastCGI? check the Authentication then try to disable windows authentication and enable anonymous authentication, try that if it will work.

Spree Paypal Integration Error

I am using Spree for my E-Commerce.
I have to integrate Paypal Payment Gateway. The tutorial that
I followed was [Paypal Integration with spree][1]
[1]: https://github.com/spree-contrib/better_spree_paypal_express. I had successfully created sandbox account. When I go for transaction all flows work fine but after I am redirected back to my own site, it throws an error "NoMethodError in Spree::PaypalController#confirm", I don't see this controller in my code and that tutorial link didn't do anything to create this one.
Please help me to resolve this. Thanks.
I am sorry. This is not a general issue.
Error was because of my code. Paypal did work fine and redirected fine.
I just had to fix my logic to handle this redirection of paypal using spree.

Google Recaptcha v2 is not working with rails application in production

I am using https://github.com/ambethia/recaptcha/ gem to add Recaptcha v2 in my rails application. This works fine on local-host environment, both in development and production, but when I am using this on VM(Azure VM), it gives ERROR: Stoken Expired issue.
Screenshot of the issue http://imgur.com/pFfJXRn
More details:
Rails version 4.2.1
Passenger Phusion server(5.0)
On VM(Ubuntu 14.10), rails application runs on local-host(port:3000) and all external request on server is redirected to local-host.
I tried to Google this issue but I am unable to find any solution that works.
Solution I tried:
setting config.serve_static_files = true
Regenerate keys(Public and private for Recaptcha again)
We were getting this "ERROR: Stoken expired in google Recaptcha v2" error too.
After days of head scratching it turned out to be the system clock on one of our Windows servers. It was out by around 12 seconds (into the future). When we corrected the machine time the "ERROR: Stoken expired" stopped happening and everything worked perfectly.
Hopefully this will help others suffering from the same issue.
Checking Date-Time may or may not solve your issue.
This is related to gem version.
Please check this issue on GitHub for complete answer and explanation.
https://github.com/ambethia/recaptcha/issues/137

Django Allauth and Google

I've tried to add google login to my web application using django-allauth.
I added to my google application the following callback_uri:
"http://localhost:8000/accounts/google/login/callback"
since i'm running tests on my development server (localhost) and i don't wanna use https.
Even though, i get a 'redirect_uri_mismatch' saying that my redirect URI doesn't match any registred redirect URI.
Does anyone have any ideea about what causes this?
Thanks for your time.
Later Edit:
Using 127.0.0.1 instead of localhost solved this problem.
Recently I ran into problems trying to get Google+ to work as well. I finally got it working. I made some updates to the documentation so it's a bit easier to use. See if using the updated allauth google docs you can get it to work.
Have you try doing the following:
1. Go to the Google Developers console -> Api $ auth -> credentials
2. You should see "Client ID for web application" click "Edit Settings"
3. Change your "Redirect URI" to "http://localhost:8000/accounts/google/login/callback"
Should work after that let me know if it doesn't.
Cheers,
Dan

Secure browsing is not supported in my app

I have an old application that I'd like to get running again. I've updated the Facebook PHP-sdk to the latest version (I think) and everything is working for most users. Except those using secure browsing.
My app simply tell me that:
This application does not yet support secure browsing (HTTPS).
How do I fix this? I've looked though all the settings in the app-page and I can't figure it out.
You need to purchase and setup an SSL certificate and then plug your https url into your app's settings page. See their migration guide where it says this is now required.