Skip to content
New issue

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

feat(account) prevent the user to set 0 as account number #2446

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

jeremielodi
Copy link
Collaborator

This PR oblige the user to enter an account number different to 0.
closes #2433

@@ -196,6 +196,12 @@ function AccountEditController(
return;
}

var number = parseInt(vm.account.number);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parseInt() function should always be called with a radix - in this case, it should be 10. See the MDN Web Docs for more information.

@jniles
Copy link
Collaborator

jniles commented Jan 23, 2018

bors r+

bors bot added a commit that referenced this pull request Jan 23, 2018
2446: feat(account) prevent the user to set 0 as account number r=jniles a=jeremielodi

This PR  oblige the user to enter an account number different to 0.
closes #2433
@bors
Copy link
Contributor

bors bot commented Jan 23, 2018

Build succeeded

@bors bors bot merged commit 2431ae3 into Third-Culture-Software:master Jan 23, 2018
@jeremielodi jeremielodi deleted the account_number_0 branch October 1, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating an account with "0" account number breaks account management.
2 participants