aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Carlson <thecarlsondaddy@gmail.com>2016-11-03 14:10:46 -0400
committerAndy Carlson <thecarlsondaddy@gmail.com>2016-11-03 14:10:46 -0400
commitf79c41dabadf3d2bb2a321302b37380edb70c0fc (patch)
treed6d72cf29656f1957627659e3ce2761b922314d6
parenta70e64268e4c5b6ce5ca18ed3c80631e607f6994 (diff)
rename files/resourceType
-rw-r--r--create.html50
-rw-r--r--password.html40
2 files changed, 0 insertions, 90 deletions
diff --git a/create.html b/create.html
deleted file mode 100644
index 4e7f0a9..0000000
--- a/create.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html>
-<head>
-<title>Create User</title>
-<script src="/system/sling.js"></script>
-<script type="text/javascript">
- function getJSON(url) {
- var resp ;
- var xmlHttp ;
-
- resp = '' ;
- xmlHttp = new XMLHttpRequest();
-
- if(xmlHttp != null)
- {
- xmlHttp.open( "GET", url, false );
- xmlHttp.send( null );
- resp = xmlHttp.responseText;
- }
-
- return resp ;
- }
-
- function loadUsers() {
- var jsontext = getJSON('/system/userManager/user.1.json');
- var jsonar = jsontext.replace("{","").split("}")
- for (var i = 0; i < jsonar.length; i++) {
- thisuser = jsonar[i].split('"')[1];
- if (thisuser.length > 0 && thisuser != 'anonymous') {
- document.getElementById('userlist').innerHTML += '<li><a href="/home/users/' + thisuser[0] + '/' + thisuser + '.html">' + thisuser + '</a></li>';
- }
- }
- }
-</script>
-</head>
-<body onLoad="loadUsers();">
-<h3>Create New User</h3>
-<form method="POST" action="/system/userManager/user.create.html">
-Username<input type="text" name=":name" onChange="document.getElementById('uid').value = this.value;" /><br/>
-Password:<input type="password" name="pwd" /><br/>
-Confirm:<input type="password" name="pwdConfirm" /><br/>
-<input type="hidden" name="uid" id="uid" />
-<input type="hidden" name="sling:resourceType" value="users/password" />
-<input type="submit" value="Create User" />
-</form>
-<h3>Existing Users</h3>
- <ul id="userlist">
- </ul>
-</body>
-</html>
-
diff --git a/password.html b/password.html
deleted file mode 100644
index e7d169f..0000000
--- a/password.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<head>
-<title>UserManager-<%= currentNode.uid %></title>
-</head>
-<script type="text/javascript">
- function getJSON(url) {
- var resp ;
- var xmlHttp ;
-
- resp = '' ;
- xmlHttp = new XMLHttpRequest();
-
- if(xmlHttp != null)
- {
- xmlHttp.open( "GET", url, false );
- xmlHttp.send( null );
- resp = xmlHttp.responseText;
- }
-
- return resp ;
- }
-
- function loadUserInfo() {
- var jsontext = getJSON("<%= currentNode.uid %>.json");
- document.getElementById('userjson').innerHTML = jsontext.replace(/}$/,'\n}').replace(/^{/,'{\n').replace(/,/g,',\n');
- }
-</script>
-<body onLoad="loadUserInfo();">
-<h3>Change Password for <%= currentNode.uid %></h3>
-<form method="POST" action="/system/userManager/user/<%= currentNode.uid %>.changePassword.html">
-Old Password:<input type="password" name="oldPwd" /><br/>
-New Password:<input type="password" name="newPwd" /><br/>
-Confirm New:<input type="password" name="newPwdConfirm" /><br/>
-<input type="submit" value="Change Password" />
-</form><br/>
-<h3>User Information (JSON)</h3>
-<pre id="userjson"></pre>
-<br/><a href="/content/newuser.html">Return to User Manager</a>
-</body>
-</html>