lil cleanup
This commit is contained in:
parent
8591fe5610
commit
33e38e26f6
|
@ -168,8 +168,8 @@ sub create($self) {
|
|||
else {
|
||||
my ($name, $email, $password);
|
||||
|
||||
$name = $self->param('name');
|
||||
$email = $self->param('email');
|
||||
$name = $self->param('name' );
|
||||
$email = $self->param('email' );
|
||||
$password = $self->param('password');
|
||||
|
||||
$self->moderator->create($name, $email, $password);
|
||||
|
|
|
@ -8,10 +8,11 @@ sub create($self, $name, $email, $password) {
|
|||
my $password_hash = $self->authenticator->hash_password($password);
|
||||
|
||||
$self->pg->db->query(<<~'END_SQL', $name, $email, $password_hash);
|
||||
INSERT INTO moderators
|
||||
(moderator_name,
|
||||
email_addr,
|
||||
password_hash)
|
||||
INSERT INTO moderators (
|
||||
moderator_name,
|
||||
email_addr,
|
||||
password_hash
|
||||
)
|
||||
VALUES (?, ?, ?);
|
||||
END_SQL
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user