Commit 9204ed3b authored by Lucas Braz Cunha's avatar Lucas Braz Cunha

Corrected email get on password retrieval

parent 609812f8
Pipeline #16406 passed with stages
in 3 minutes and 57 seconds
......@@ -17,14 +17,17 @@ module Api::V1
@resource = Account.find_by(uid: params[:cpf])
if or
if or
render json: {
errors: ["User #{params[:cpf]} does not have an email registered."]
}, status: 422
@email = =
@email =
# if whitelist is set, validate redirect_url against whitelist
if DeviseTokenAuth.redirect_whitelist
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment