Users using the Tequila login are invited to migrate to gitlab.epfl.ch. This instance will close for Tequila users by May 2020.

Commit 03e81387 authored by Florian Vessaz's avatar Florian Vessaz

Rename confusing method name

PasswordToken::count -> PasswordToken::count_by_user
parent 19f46af0
......@@ -36,7 +36,7 @@ PasswordToken - Keep unique tokens associated with usernames.
PasswordToken->delete_all($user)
# Get a map of user to the number of token they have
PasswordToken->count
PasswordToken->count_by_user
=cut
......@@ -114,7 +114,7 @@ sub delete_all {
return;
}
sub count {
sub count_by_user {
my ($class, $user) = @_;
my $dbh = PasswordToken::_get_dbh();
......
......@@ -472,7 +472,7 @@ any '/passwords' => sub {
template 'passwords', {
'message' => $message,
'token_map' => PasswordToken->count,
'token_map' => PasswordToken->count_by_user,
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment