From fdb6e7dd972b0c05d13a56d215871daf4d06c2e8 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 28 Apr 2021 18:30:35 -0400 Subject: [PATCH] fixup: return the user entity on login --- src/lib/Hydra/Controller/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/User.pm b/src/lib/Hydra/Controller/User.pm index 0ce5b2ff..49c49c84 100644 --- a/src/lib/Hydra/Controller/User.pm +++ b/src/lib/Hydra/Controller/User.pm @@ -40,7 +40,7 @@ sub login_POST { $self->status_found( $c, location => $c->uri_for("current-user"), - entity => {} + entity => $c->model("DB::Users")->find($c->user->username) ); }