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:48 UTC
[07/14] incubator-trafficcontrol git commit: user does specify not
set the uid/gid on user create
user does specify not set the uid/gid on user create
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d78ad322
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d78ad322
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d78ad322
Branch: refs/heads/master
Commit: d78ad322114eb7edac81fb86e483c54ff66b1c0b
Parents: b251c69
Author: nir-sopher <ni...@gmail.com>
Authored: Sun Mar 19 05:21:04 2017 +0200
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Mon Jun 5 09:01:58 2017 -0600
----------------------------------------------------------------------
traffic_ops/app/lib/API/User.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d78ad322/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 a7c06a2..311619f 100644
--- a/traffic_ops/app/lib/API/User.pm
+++ b/traffic_ops/app/lib/API/User.pm
@@ -288,8 +288,8 @@ sub create {
role => $params->{role},
state_or_province => defined_or_default($params->{stateOrProvince}, ""),
username => $params->{username},
- uid => defined_or_default($params->{uid}, 0),
- gid => defined_or_default($params->{gid}, 0),
+ uid => 0,
+ gid => 0,
local_passwd => sha1_hex($params->{localPassword} ),
confirm_local_passwd => sha1_hex($params->{confirmLocalPassword} ),