From 7fc1e2f9c71593b7ba397c144841f4a3e35670d2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 11 Nov 2012 17:43:30 +0100 Subject: [PATCH] Fixed API url. --- .../javascripts/app/controllers/reset_password.js.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/reset_password.js.coffee b/app/assets/javascripts/app/controllers/reset_password.js.coffee index be899be8e..c2f9e2dbc 100644 --- a/app/assets/javascripts/app/controllers/reset_password.js.coffee +++ b/app/assets/javascripts/app/controllers/reset_password.js.coffee @@ -42,7 +42,7 @@ class Index extends App.Controller App.Com.ajax( id: 'password_reset', type: 'POST', - url: '/users/password_reset', + url: '/api/users/password_reset', data: JSON.stringify(params), processData: true, success: @success, @@ -83,7 +83,7 @@ class Verify extends App.Controller App.Com.ajax( id: 'passwort_reset_verify', type: 'POST', - url: '/users/password_reset_verify', + url: '/api/users/password_reset_verify', data: JSON.stringify(params), processData: true, success: @render_success @@ -118,7 +118,7 @@ class Verify extends App.Controller App.Com.ajax( id: 'password_reset_verify', type: 'POST', - url: '/users/password_reset_verify', + url: '/api/users/password_reset_verify', data: JSON.stringify(params), processData: true, success: @render_changed_success