Avatars re-added, I guess.

This commit is contained in:
Luka Vandervelden 2019-01-14 21:46:40 +09:00
parent 136bb589f5
commit 66ac26b46e
2 changed files with 4 additions and 1 deletions

View File

@ -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?

View File

@ -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