#3114 closed enhancement (no action required)
Action in bp_core_screen_general_settings for validating email
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | 1.2.8 |
Component: | Settings | 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
@
14 years ago
- Resolution set to invalid
- Status changed from new to 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.
Patch adding a new action and email validation to bp_core_screen_general_settings