Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set of email verification related tweaks #1891

Merged
merged 2 commits into from Mar 22, 2021

Conversation

EreMaijala
Copy link
Contributor

This is a set of individual commits for improving email verification.

First three are fixes to existing functionality, and the last one adds a flash message to the profile page to reming the user about a pending verification.

- When email verification is enabled, changing the email address to the currently active address should reset any pending email address verification.
{
if (!empty($user->pending_email)) {
// Check if the message has already been added
foreach ($this->flashMessenger()->getInfoMessages() as $message) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? The view helper should already be deduplicating flash messages here. Rather than doing a lot of specific work here, I wonder if we need to fix/improve a pre-existing generic mechanism if things are not working as expected without this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't know about that. Then I believe it's a useless piece of code. I'll remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@demiankatz Fixed.

@demiankatz demiankatz merged commit 980440d into vufind-org:dev Mar 22, 2021
@demiankatz
Copy link
Member

Looks good to me. Rebasing now!

@EreMaijala EreMaijala deleted the dev-email-verify-tweaks branch March 29, 2021 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants