Esqueci Minha Senha (Email)
Resetar Senha (Email)
POST https://api.gestao.plus/user?q=forgot-password
Com essa rota é possível desenvolver um fluxo de recuperação de senhas.
Query Parameters
Name
Type
Description
q*
string
Ação que deseja fazer sobre o usuário (Query). Neste caso "forgot-password"
Headers
Name
Type
Description
Content-Type*
string
"application/json"
Request Body
Name
Type
Description
document*
string
O CPF do usuário
email*
string
O email da conta que deseja recuperar a senha
{
"pinPrefix": "PREFIXO DE PIN",
"token": "TOKEN PARA RECUPERAÇÃO DE SENHA",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Forgot Password",
"status": 202,
"detail": "Email sent"
}{
"trace": [
{
"file": "/var/www/module/IUPBase/src/EventListener/AbstractListener.php",
"line": 420,
"function": "preCreate",
"class": "IUPBase\\V1\\EventListenerController\\User",
"type": "->",
"args": [
{
"email": "CÓDIGO DE EMAIL"
}
]
},
],
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Internal Server Error",
"status": 500,
"detail": "Call to a member function getId() on null"
}Last updated
Was this helpful?