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
Add check max length Currency Code #1726
base: main
Are you sure you want to change the base?
Add check max length Currency Code #1726
Conversation
jaapmarcus
commented
Oct 14, 2023
- Change database password html element from password to text
Max length 3 + A-Z only
Safari hates the fact that Database Password and "Admin" password are not the same and keeps it changing back every time ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The validation should happen in javascript imo.
* | ||
* @return boolean | ||
*/ | ||
private function validateCurrency(): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this should happen in javascript, not in the installation code, as that would lead to the user not being able to fix it before installing FOSSBilling. Also, validateCurrency isn't called anywhere in the installation code.
throw new Exception('Maximum currency title is 50 characters'); | ||
} | ||
if (strlen($this->session->get('currency_format')) > 30) { | ||
throw new Exception('Maximum currency title is 30 characters'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This exception text is the same as above and should be fixed.
b08f65b
to
b94d932
Compare