Commit 35501f07 authored by Efe's avatar Efe
Browse files

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.
parent cafa7d7a
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment