From 6ff53aea5b77f77fef973b38e942b4f630029260 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Tue, 6 Sep 2016 19:30:02 +0800 Subject: [PATCH] Fix username validation on registration process --- core/um-actions-register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-register.php b/core/um-actions-register.php index d5e796db..fca76540 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -70,7 +70,7 @@ $unique_userID = $ultimatemember->query->count_users() + 1; - if ( ! isset( $user_login ) ) { + if ( ! isset( $user_login ) || strlen( $user_login ) > 30 ) { $user_login = 'user' . $unique_userID; }