check name length
This commit is contained in:
parent
02208ca037
commit
11264a6861
@ -219,6 +219,11 @@ sub check_name {
|
||||
|
||||
my $name = shift;
|
||||
|
||||
if (length $name < 6 or length $name >= 64) {
|
||||
print "Name ($name) not compatible, need to longer than 6 charaters and shorter than 64\n";
|
||||
return;
|
||||
}
|
||||
|
||||
# Check if name is registered
|
||||
# curl http://127.0.0.1:40402/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"nametoaddress","params":{"name":"TESTUSERNAME" }}' -H 'Content-Type: application/json'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user