summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-22 12:44:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-22 12:44:19 +0100
commit1c63574245bd309c879c8f2914dfec9d67a48486 (patch)
treebb2778d781c5d5db4a330b2787c12fc50c108cbc /lib/Travelynx/Model
parente98fc8493fee2135b8ff3a33521969d7d79a2988 (diff)
users: rename "add_user" to "add" and "get_data" to "get"
Diffstat (limited to 'lib/Travelynx/Model')
-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 46ffbdd..c162f30 100644
--- a/lib/Travelynx/Model/Users.pm
+++ b/lib/Travelynx/Model/Users.pm
@@ -318,7 +318,7 @@ sub remove_password_token {
);
}
-sub get_data {
+sub get {
my ( $self, %opt ) = @_;
my $db = $opt{db} // $self->{pg}->db;
my $uid = $opt{uid};
@@ -377,7 +377,7 @@ sub get_login_data {
return $res_h;
}
-sub add_user {
+sub add {
my ( $self, %opt ) = @_;
my $db = $opt{db} // $self->{pg}->db;
my $user_name = $opt{name};