Problem/Motivation

There are a couple of places where module activation is checked without using the email_verify_activated() function.

Proposed resolution

Fix them.

Remaining tasks

  1. Fix the issue
  2. Create a patch
  3. Review the patch
  4. Commit the patch

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

oadaeh created an issue. See original summary.

oadaeh’s picture

Assigned: oadaeh » Unassigned
Status: Active » Needs review
StatusFileSize
new4 KB

The attached patch makes it so that the email_verify_activated() function is used to check activation. It also sets the variable to be boolean.

aimeerae’s picture

Issue summary: View changes

(updating attribution)

aimeerae’s picture

Status: Needs review » Needs work

Looks good. I found one thing:

+++ b/email_verify.admin.inc
@@ -19,7 +19,7 @@ function email_verify_admin_settings($form, &$form_state) {
+    '#default_value' => variable_get('email_verify_active', FALSE),

Shouldn't the function be called here?

oadaeh’s picture

Status: Needs work » Needs review
StatusFileSize
new3.99 KB
new594 bytes

I've changed that in the updated patch attached.

Patrick Storey’s picture

Status: Needs review » Reviewed & tested by the community

This one is a tad difficult to test, but I reviewed the code and verified that it is now using the email_verify_activated() function in those areas, and while using the module no errors popped up so it appears to be using it correctly.

  • oadaeh committed 848da0b on 7.x-2.x
    Issue #2676830 by oadaeh, Aimee Degnan, Patrick Storey: Check activation...
oadaeh’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

This has been committed to the 2.x dev branch. Thanks for the reviews and testing.

kristen pol’s picture

Thanks!

kristen pol’s picture

Thanks!

Whoops... duplicate. :)

oadaeh’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.