summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model/Users.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-06-13 06:20:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-06-13 06:20:21 +0200
commit581aae081dcc75c0fd0520c0b9ae096e4b138681 (patch)
tree2fbfd644a430bd8666033d6c65e9b0fd95dbb3be /lib/Travelynx/Model/Users.pm
parent6cee1e20ef10608ed8f37777cdb24236487377d3 (diff)
Model/Users: Remove superfluous "check_if_" prefix from check functions
Diffstat (limited to 'lib/Travelynx/Model/Users.pm')
-rw-r--r--lib/Travelynx/Model/Users.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm
index 3c64e9d..8bd60f0 100644
--- a/lib/Travelynx/Model/Users.pm
+++ b/lib/Travelynx/Model/Users.pm
@@ -366,7 +366,7 @@ sub set_password_hash {
$db->update( 'users', { password => $password }, { id => $uid } );
}
-sub check_if_user_name_exists {
+sub user_name_exists {
my ( $self, %opt ) = @_;
my $db = $opt{db} // $self->{pg}->db;
my $user_name = $opt{name};
@@ -381,7 +381,7 @@ sub check_if_user_name_exists {
return 0;
}
-sub check_if_mail_is_blacklisted {
+sub mail_is_blacklisted {
my ( $self, %opt ) = @_;
my $db = $opt{db} // $self->{pg}->db;
my $mail = $opt{email};