19 lines
367 B
Crystal
19 lines
367 B
Crystal
class AuthD::Response
|
|
IPC::JSON.message NewEmailTokenSent, 14 do
|
|
def initialize()
|
|
end
|
|
end
|
|
AuthD.responses << NewEmailTokenSent
|
|
|
|
IPC::JSON.message NewEmailAddressValidated, 15 do
|
|
property email : String
|
|
def initialize(@email)
|
|
end
|
|
|
|
def to_s(io : IO)
|
|
super io
|
|
io << " (email: #{@email})"
|
|
end
|
|
end
|
|
AuthD.responses << NewEmailAddressValidated
|
|
end
|