Registration dates sent to clients on GetUser and similar.

This commit is contained in:
Luka Vandervelden 2020-04-15 11:39:34 +02:00
parent a98c0b701d
commit e47f7e7f75

View File

@ -63,12 +63,14 @@ class AuthD::User
property uid : Int32
property profile : JSON::Any?
def initialize(@uid, @login, @profile)
property date_registration : Time?
def initialize(@uid, @login, @profile, @date_registration)
end
end
def to_public : Public
Public.new @uid, @login, @profile
Public.new @uid, @login, @profile, @date_registration
end
end