Closed sloschert closed 3 months ago
Hey, regarding your comments:
is_possibly_an_email_address
in arbeitszeit/email.py
and we make use of it for checking the well-formedness of the email-address in the use case ChangeUserEmailAddressUseCase
. So the controller in this PR creates the request object for the use case where the email is then checked for well-formedness.@seppeljordan I register 2x consumption
This controller is intended to be used in the
change_email_address
route inarbeitszeit_flask/user/routes.py
. It has two methods. One,extract_email_addresses_from_token
is used in the GET and the POST method of the route, the second method,create_use_case_request
, is used in the POST method and creates the UseCaseRequest object of theChangeUserEmailAddressUseCase
.Contributes to #728.
Plan-ID: 371825c0-3112-47cd-9cb0-fea799fad3ee (2x)