From dfa1ba11f0303931d03f1000940b828f947c2e1f Mon Sep 17 00:00:00 2001 From: Finn Date: Wed, 26 Jul 2017 15:55:39 +0100 Subject: [PATCH] Fix to naming of JSON --- lib/Pear/LocalLoop/Controller/Api/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Pear/LocalLoop/Controller/Api/Auth.pm b/lib/Pear/LocalLoop/Controller/Api/Auth.pm index 5c35383..af0e461 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Auth.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Auth.pm @@ -84,8 +84,8 @@ sub post_login { success => Mojo::JSON->true, session_key => $session_key, full_name => $user_result->('full_name'), - full_name => $user_result->('display_name'), - full_name => $user_result->('postcode'), + display_name => $user_result->('display_name'), + postcode => $user_result->('postcode'), }); } }