Closed Bug 1335331 Opened 7 years ago Closed 6 years ago

As a user, I want the ability to change email address

Categories

(Webtools Graveyard :: Pontoon, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mathjazz, Assigned: jozefkarabelly, Mentored)

References

Details

Attachments

(4 files)

Users should be able to change their email addresses.
Mentor: m
Hello can I work on this bug?
:jozefkarabelly

I think you can, feel free to ask if you have any questions :-)
(In reply to Jarek from comment #2)
> :jozefkarabelly
> 
> I think you can, feel free to ask if you have any questions :-)
I do, I am not sure how to implement this, should I do this just like username view or create profile view where I will handle both username and email?
We should have fields for changing the username and email in the /settings, checkout the attached screenshot.

We should also get rid of the username changing UI in both /profile and /settings. It's fun, but not very obvious.
Attached image Profile form
Can it be like this?
Flags: needinfo?(m)
I'd actually keep the #heading look unchanged and add the new fields to #main, just above the prefered locales block.
Flags: needinfo?(m)
:mathjazz

Who shall I add to pull request as reviewer?
I'd be happy to review!
Is this bug fixed yet? I interested to take it on if possible.
Hi Michael,

We already have a PR pending for this bug that is waiting for a review:
https://github.com/mozilla/pontoon/pull/631

If you want, you can pick one of our mentored bugs, for example bug 1398852.

There's a full list of mentored bugs to pick from:
https://wiki.mozilla.org/Webdev/GetInvolved/pontoon.mozilla.org

If none of them is of your interest, I'd be happy to help you find a different one.
Assignee: nobody → jozefkarabelly
Commit pushed to master at https://github.com/mozilla/pontoon

https://github.com/mozilla/pontoon/commit/702d1e1fff7c0952431856635adbc5112fc9d208
Fix bug 1335331 - Enable users to change their email address (#793)

* Bug 1335331: added ability to change email address

* Bug 1335331: add username in read-only mode

* Bug 1335331: remove placeholders

* Bug 1335331: add email validation

* Bug 1335331: adjust contributor profile tests

* Bug 1335331: make profile-form submit more generic

* Bug 1335331: add logout after email change

* Bug 1335331: change email in tests

* Bug 1335331: add email warning message to css

* Bug 1335331: adjust contributor profile test email

* Bug 1335331: shorten the line to pass PEP8

* Bug 1335331: make code style consistent

* Bug 1335331: correct level of indentation

* Fix errors on settings page.
This commit removes the fancy javascript that allowed to save user profile without reloading the page. It was a big source of errors and complexity. The settings page is now much simpler, the custom home page being the only exception. This fixes the CSRF error that was happening as well when saving data by clicking the Save button.

* Show or hide warning using JS.
It was bad that the warning for a changed email would only appear on focus on the input. First it made it difficult to click the save button, as the layout was changed and thus the button moved. Second, it would show up even if the email was not changed.
This commit also moves CSS to the more specific settings.css file, and addresses a few review comments.

* Make message a help text instead, and always show it.

* Styling changes.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1430849
Nice job, only a minor note - the field for the name should probably be labeled "Name", not "First name".
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: