mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 21:53:43 +09:00
Fix username validation
This commit is contained in:
@@ -132,6 +132,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
|
||||
$ultimatemember->form->add_error('user_login', __('Your username is invalid','ultimatemember') );
|
||||
return;
|
||||
}
|
||||
|
||||
// delete account
|
||||
if ( isset($_POST['um_account_submit']) && $_POST['um_account_submit'] == __('Delete Account','ultimatemember') ) {
|
||||
if ( strlen(trim( $_POST['single_user_password'] ) ) == 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user