From 4fb3d67f49668bf960fd0026a5f13ed5e72c61ca Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Nov 2013 16:10:27 +0100 Subject: [PATCH] Make /login give a proper JSON response again --- 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 024ddd2f..6a1a8552 100644 --- a/src/lib/Hydra/Controller/User.pm +++ b/src/lib/Hydra/Controller/User.pm @@ -30,7 +30,7 @@ sub login_POST { accessDenied($c, "Bad username or password.") if !$c->authenticate({username => $username, password => $password}); - $self->status_no_content($c); + currentUser_GET($self, $c); }