#3114 closed enhancement (no action required)
Action in bp_core_screen_general_settings for validating email
| Reported by: | dimitryz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Settings | Version: | 1.2.8 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The current buddypress version (1.2.8) does not include email validation for the settings profile page. A user can enter any value and it will be saved.
Attached is a patch that fixes this problem. It enables the declaration of an action function to validate the POSTed email address. If the email address is not valid, a function may modify $email_error and set it to 'true'. Example:
function test_settings_email() { global $email_error; if ( !is_email($_POST['email']) ) { $email_error = true; } } add_action('bp_core_screen_general_settings_before_save', 'test_settings_email', 1);
Attachments (1)
Change History (4)
#1
@
15 years ago
- Resolution → invalid
- Status new → closed
This has been fixed in trunk [3524]. Highly unlikely it will be fixed in the 1.2 branch.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch adding a new action and email validation to bp_core_screen_general_settings