fix reset password email link
This commit is contained in:
parent
754be7877e
commit
254d1ecac7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue