Skip to content
Snippets Groups Projects
Commit 6555b3f2 authored by juanf's avatar juanf
Browse files

SSDM-1321 : PAPER - UI to create Users (Server Side)

SVN: 33031
parent 6995fa31
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,8 @@ def registerUserPassword(tr, parameters, tableBuilder): ...@@ -114,7 +114,8 @@ def registerUserPassword(tr, parameters, tableBuilder):
password = parameters.get("password"); #String password = parameters.get("password"); #String
path = '../openBIS-server/jetty/bin/passwd.sh'; path = '../openBIS-server/jetty/bin/passwd.sh';
if os.path.isfile(path): if os.path.isfile(path):
subprocess.call([path, 'add', userId, '-p', password]) subprocess.call([path, 'add', userId, '-p', password]) #Adds the user, if the user exists, will fail
subprocess.call([path, 'change', userId, '-p', password]) #Changes the user pass, works always
return True; return True;
else: else:
return False; return False;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment