fix reset password email link

This commit is contained in:
Nuwan 2025-02-14 19:44:20 +05:30
parent 754be7877e
commit 254d1ecac7
1 changed files with 1 additions and 2 deletions

View File

@ -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