camelCase to snake_case convert one var I missed (#5)

This commit is contained in:
ngoomie 2024-08-19 02:48:53 -06:00
parent e86434f300
commit 3dab8cb6a0
1 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ sub register_do {
my $username = $self->param('username');
my $email = $self->param('email');
my $password = $self->param('password');
my $confirmPassword = $self->param('confirm-password');
my $confirm_password = $self->param('confirm-password');
my $catch_error;
@ -39,12 +39,12 @@ sub register_do {
# TODO: implement email validation here at some point
# check to make sure all required fields are filled
($username, $email, $password, $confirmPassword)
($username, $email, $password, $confirm_password)
or die "Please fill out all required fields.";
# check to make sure both passwords match
# TODO: add check on frontend for this for people with JS enabled
$password eq $confirmPassword
$password eq $confirm_password
or die "Passwords do not match";
# check to make sure username and/or email isn't already in use;