Provide the validated email address once validated.

This commit is contained in:
Philippe Pittoli 2024-11-18 08:13:48 +01:00
parent 1f929cdab6
commit 0ab0a675fb
2 changed files with 3 additions and 2 deletions

View File

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

View File

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