diff --git a/src/requests/mail.cr b/src/requests/mail.cr index 123ba51..eb4aa6a 100644 --- a/src/requests/mail.cr +++ b/src/requests/mail.cr @@ -70,7 +70,7 @@ class AuthD::Request authd.users_per_uid.update cloned_user - Response::NewEmailAddressValidated.new + Response::NewEmailAddressValidated.new cloned_user.contact.email.not_nil! end end AuthD.requests << NewEmailAddressToken diff --git a/src/responses/email.cr b/src/responses/email.cr index 151c541..d0a9527 100644 --- a/src/responses/email.cr +++ b/src/responses/email.cr @@ -6,7 +6,8 @@ class AuthD::Response AuthD.responses << NewEmailTokenSent IPC::JSON.message NewEmailAddressValidated, 15 do - def initialize() + property email : String + def initialize(@email) end end AuthD.responses << NewEmailAddressValidated