diff --git a/web/app/controllers/api_sessions_controller.rb b/web/app/controllers/api_sessions_controller.rb index d2cbc3ee9..db5691694 100644 --- a/web/app/controllers/api_sessions_controller.rb +++ b/web/app/controllers/api_sessions_controller.rb @@ -21,8 +21,7 @@ class ApiSessionsController < ApiController #update password token. inteanded for the react app (spa) def request_reset_password begin - url = APP_CONFIG.spa_origin_url + '/authentication/basic' - User.reset_password(params[:email], url) + User.reset_password(params[:email], APP_CONFIG.spa_origin_url) render :json => {}, :status => 204 rescue JamRuby::JamArgumentError render :json => {:message => ValidationMessages::EMAIL_NOT_FOUND}, :status => 403