You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/06/05 15:02:54 UTC

[13/14] incubator-trafficcontrol git commit: Remove redundant tests on user creation API

Remove redundant tests on user creation API


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/cfaeb78c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/cfaeb78c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/cfaeb78c

Branch: refs/heads/master
Commit: cfaeb78c876b0fa43ffa1e89b982a6f1cecaffde
Parents: 954db05
Author: nir-sopher <ni...@gmail.com>
Authored: Mon Apr 24 22:16:58 2017 +0300
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Mon Jun 5 09:01:58 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/API/User.pm | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/cfaeb78c/traffic_ops/app/lib/API/User.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/User.pm b/traffic_ops/app/lib/API/User.pm
index fea38ab..306ab0a 100644
--- a/traffic_ops/app/lib/API/User.pm
+++ b/traffic_ops/app/lib/API/User.pm
@@ -248,14 +248,6 @@ sub create {
 	}
 
 
-	if ( !defined($params->{fullName}) ) {
-		return $self->alert("full-name is required.");
-	}
-
-	if ( !defined($params->{email}) ) {
-		return $self->alert("email is required.");
-	}
-	
 	if ( !defined($params->{localPassword}) ) {
 		return $self->alert("local-password is required.");
 	}