Improve username validation and error handling
- Remove redundant regex validation in favor of validateHiveAccountName - Change error code from 404 to 400 for validation failures - Add validation error message to error object for better error reporting - Keep URL encoding and API request security measures This change simplifies the validation logic while maintaining security by relying on the comprehensive validateHiveAccountName function which already implements Hive protocol's account name rules.
Loading
Please sign in to comment