Skip to content

Commit

Permalink
fix: Email address with space (#6578)
Browse files Browse the repository at this point in the history
* Added modified email

* Added else clause
  • Loading branch information
aadarsh-ram authored Apr 11, 2022
1 parent 50188da commit 7469115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ProductOpener/Users.pm
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ sub check_user_form($$$) {
if (not $address) {
push @{$errors_ref}, $Lang{error_invalid_email}{$lang};
}
else {
# If all checks have passed, reinitialize with modified email
$user_ref->{email} = $address;
}

if ($type eq 'add') {

Expand Down

0 comments on commit 7469115

Please sign in to comment.