ida-arbeitszeit / arbeitszeitapp

A webapp for labour-time calculation.
https://arbeitszeitapp.readthedocs.io
GNU Affero General Public License v3.0
36 stars 4 forks source link

Change user email address (Flask layer) #1033

Closed sloschert closed 3 months ago

sloschert commented 3 months ago

Add change email functionality to user account details page

This commit adds the functionality to change the email address on the user account details page. It includes changes to the account_details.html template, url_index.py, user_account_details_presenter.py, and related tests. The user can now click on the "Change email address" link to navigate to the email change page.

Implement email address change in flask layer

This commit implements the email address change flask view. It nearly completes feature request #728.

Only step 3 ("The user must provide their password for authentication purposes in this form.") is not yet implemented.

Confirm new email when changing to it

This commit changes the ChangeUserEmailAddressUseCase such that the new email address gets immeditely confirmed. This is tested on the use case level by checking that a member that has changed its email address successfully cannot confirm it (because it is already confirmed).

Plan: 371825c0-3112-47cd-9cb0-fea799fad3ee (9x)

sloschert commented 3 months ago

I guess this user flow is not intended - right?

Thanks for raising this. I will try to provide a fix for this.

sloschert commented 3 months ago

Thanks I merge and register 9x productive consumption in our app collective account.