v6.1.0: improve handling of invalid balance in revbank.accounts
This small change makes it possible to reserve an account name by just giving it an invalid balance in `revbank.accounts`.
This commit is contained in:
parent
4e2115f265
commit
33b08f99ea
2 changed files with 12 additions and 4 deletions
|
@ -27,6 +27,9 @@ sub username($self, $cart, $name, @) {
|
|||
return REJECT, "That name already exists."
|
||||
if defined parse_user($name);
|
||||
|
||||
return REJECT, "That name is not available."
|
||||
if defined parse_user($name, 1);
|
||||
|
||||
for my $plugin (RevBank::Plugins->new) {
|
||||
my $id = $plugin->id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue