Skip to content

Commit

Permalink
fix: add some user info in /cgi/auth.pl body (openfoodfacts#9918)
Browse files Browse the repository at this point in the history
* fix: add some user info in /cgi/auth.pl body openfoodfacts#9910

* removing email
  • Loading branch information
stephanegigandet authored and Mal-One committed Mar 15, 2024
1 parent 747b702 commit 0b5434b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cgi/auth.pl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
status_verbose => 'user signed-in',
user_id => $User_id,
user => {
email => $User{email},
name => $User{name},
preferred_language => $User{preferred_language},
country => $User{country},
moderator => $User{moderator} ? 1 : 0,
admin => is_admin_user($User_id) ? 1 : 0,
},
};

Expand Down

0 comments on commit 0b5434b

Please sign in to comment.