Closed kcole16 closed 4 years ago
Login /login
contractId
does not exist, the user is displayed a warning message (see below) in a modalWarning Message
"The contract <contractId>
does not exist. This may be an issue with the application you are trying to use, or this contract may have been deleted. You will be redirected back to the application"
question from @marcinbodnar
how can we check if contract_id from param is valid?
It has same constraints as account Id + it also needs to be an existing account (i.e. we'd want to query near node for that account). Can be done similarly to user profile component I think (after Chad changed it to work with any account vs current account).
Problem If the contractId is wrong in a /login/ (e.g.
login/?contractId=THISDOESNTEXIST
) request from an app, a useless access key is created (or is it?) and the app is forced to identify the error with little to no information.Expected Behavior If a contractId is invalid, we should prevent the user from going through the /login/ step, and return an error to the app.
Steps to reproduce
contractId=notrealid
and resubmit