Return-Path: X-Original-To: apmail-ranger-commits-archive@www.apache.org Delivered-To: apmail-ranger-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67B1518DE8 for ; Tue, 2 Feb 2016 06:57:45 +0000 (UTC) Received: (qmail 4159 invoked by uid 500); 2 Feb 2016 06:57:45 -0000 Delivered-To: apmail-ranger-commits-archive@ranger.apache.org Received: (qmail 4132 invoked by uid 500); 2 Feb 2016 06:57:45 -0000 Mailing-List: contact commits-help@ranger.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.incubator.apache.org Delivered-To: mailing list commits@ranger.incubator.apache.org Received: (qmail 4123 invoked by uid 99); 2 Feb 2016 06:57:45 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 06:57:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EB0E1180615 for ; Tue, 2 Feb 2016 06:57:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.227 X-Spam-Level: * X-Spam-Status: No, score=1.227 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.553] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XOY-AOu23sVI for ; Tue, 2 Feb 2016 06:57:44 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 4F4E32304B for ; Tue, 2 Feb 2016 06:57:43 +0000 (UTC) Received: (qmail 4118 invoked by uid 99); 2 Feb 2016 06:57:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 06:57:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 68C68E3830; Tue, 2 Feb 2016 06:57:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gautam@apache.org To: commits@ranger.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-ranger git commit: RANGER-833 : Add support for usernames containing a plus + symbol Date: Tue, 2 Feb 2016 06:57:42 +0000 (UTC) Repository: incubator-ranger Updated Branches: refs/heads/master 018644b94 -> a6f4edd27 RANGER-833 : Add support for usernames containing a plus + symbol Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/a6f4edd2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/a6f4edd2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/a6f4edd2 Branch: refs/heads/master Commit: a6f4edd2714d4845ca1aa011492f0ba5d1f80c7e Parents: 018644b Author: Gautam Borad Authored: Thu Jan 28 09:13:58 2016 +0530 Committer: Gautam Borad Committed: Tue Feb 2 12:27:28 2016 +0530 ---------------------------------------------------------------------- security-admin/src/main/webapp/scripts/views/users/UserForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/a6f4edd2/security-admin/src/main/webapp/scripts/views/users/UserForm.js ---------------------------------------------------------------------- diff --git a/security-admin/src/main/webapp/scripts/views/users/UserForm.js b/security-admin/src/main/webapp/scripts/views/users/UserForm.js index edd87c3..d99f079 100644 --- a/security-admin/src/main/webapp/scripts/views/users/UserForm.js +++ b/security-admin/src/main/webapp/scripts/views/users/UserForm.js @@ -63,7 +63,7 @@ define(function(require){ name : { type : 'Text', title : localization.tt("lbl.userName") +' *', - validators : ['required',{type:'regexp',regexp:/^[a-z0-9][a-z0-9,._'-]+$/i,message :"Name should start with alpha/numeric letters and can have special characters ,._'-"}], + validators : ['required',{type:'regexp',regexp:/^[a-z0-9][a-z0-9,._'-+]+$/i,message :"Name should start with alpha/numeric letters and can have special characters ,.+_'-"}], editorAttrs :{'maxlength': 32} }, password : {