deleted helper class get_user_name and set user_handle instead to get the user name
diff --git a/lib/Kalamar/Plugin/Auth/templates/partial/auth/logout.html.ep b/lib/Kalamar/Plugin/Auth/templates/partial/auth/logout.html.ep
index d35df3f..5a8e15d 100644
--- a/lib/Kalamar/Plugin/Auth/templates/partial/auth/logout.html.ep
+++ b/lib/Kalamar/Plugin/Auth/templates/partial/auth/logout.html.ep
@@ -3,7 +3,7 @@
<div class="dropdown">
<div class="dropdown-btn profile">
<h3 class="user-name">
- <%= get_user_name %>
+ <%= user_handle %>
</h3>
</div>
<ul class="dropdown-content">
diff --git a/lib/Kalamar/Plugin/KalamarUser.pm b/lib/Kalamar/Plugin/KalamarUser.pm
index 400e003..0b3fee8 100644
--- a/lib/Kalamar/Plugin/KalamarUser.pm
+++ b/lib/Kalamar/Plugin/KalamarUser.pm
@@ -101,28 +101,6 @@
)->param(@_);
}
);
-
-
- $mojo->helper(
- 'get_user_name' => sub {
- my $c = shift;
-
- # Get from stash
- my $user = $c->stash('user');
- return $user if $user;
-
- # Get from session
- $user = $c->session('user');
-
- # Set in stash
- if ($user) {
- $c->stash(user => $user);
- return $user;
- };
-
- $c->render(template => '/templates/partial/header', user => $user);
- }
- );
};