From 66ac26b46ee6b12aa791fef35dc943c4254126f8 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Mon, 14 Jan 2019 21:46:40 +0900 Subject: [PATCH] Avatars re-added, I guess. --- src/passwd.cr | 1 + src/user.cr | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/passwd.cr b/src/passwd.cr index 03215ea..40ef618 100644 --- a/src/passwd.cr +++ b/src/passwd.cr @@ -201,6 +201,7 @@ class AuthD::User @office_phone_number = gecos[2]? @home_phone_number = gecos[3]? @other_contact = gecos[4]? + @avatar = gecos[5]? # CAUTION: NON-STANDARD EXTENSION end # FIXME: What about those two fields? Keep them, remove them? diff --git a/src/user.cr b/src/user.cr index 62e0c66..a112322 100644 --- a/src/user.cr +++ b/src/user.cr @@ -12,6 +12,7 @@ class AuthD::User getter office_phone_number : String? = nil getter home_phone_number : String? = nil getter other_contact : String? = nil + getter avatar : String? = nil JSON.mapping({ login: String, @@ -42,7 +43,8 @@ class AuthD::User :full_name => @full_name, :office_phone_number => @office_phone_number, :home_phone_number => @home_phone_number, - :other_contact => @other_contact + :other_contact => @other_contact, + :avatar => @avatar } end end