We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, a user can paste accidentally passphrase into the search field and it will be used as a search term and sent to a server.
This should be avoided by not making the API request for delegate name if entered search term doesn't match the delegate name regex https://github.com/LiskHQ/lisk-hub/blob/93c9b0a386e47c258ff4ed77a8ad576aa720b0f5/src/components/registerDelegate/steps/choose/choose.js#L22 This will solve the problem because a delegate name doesn't allow spaces and passphrase require spaces, so there is an empty intersection of the two.
BTW the delegate name regex should be defined in this file https://github.com/LiskHQ/lisk-hub/blob/development/src/utils/regex.js and then the regex can be handled same as for Lisk ID and TxID in https://github.com/LiskHQ/lisk-hub/blob/93c9b0a386e47c258ff4ed77a8ad576aa720b0f5/src/utils/api/search.js#L44-L48
The text was updated successfully, but these errors were encountered:
Merge pull request #1864 from LiskHQ/1774-implement-the-new-search
f4045f0
Implement the new search - Closes #1774 #1813
issue fixed in PR #1864
Sorry, something went wrong.
osvaldovega
No branches or pull requests
Currently, a user can paste accidentally passphrase into the search field and it will be used as a search term and sent to a server.
This should be avoided by not making the API request for delegate name if entered search term doesn't match the delegate name regex https://github.com/LiskHQ/lisk-hub/blob/93c9b0a386e47c258ff4ed77a8ad576aa720b0f5/src/components/registerDelegate/steps/choose/choose.js#L22 This will solve the problem because a delegate name doesn't allow spaces and passphrase require spaces, so there is an empty intersection of the two.
BTW the delegate name regex should be defined in this file https://github.com/LiskHQ/lisk-hub/blob/development/src/utils/regex.js and then the regex can be handled same as for Lisk ID and TxID in https://github.com/LiskHQ/lisk-hub/blob/93c9b0a386e47c258ff4ed77a8ad576aa720b0f5/src/utils/api/search.js#L44-L48
The text was updated successfully, but these errors were encountered: