Browse Source

fixed post parameters

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
0ebbbb6ba4
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      src/users.js

+ 12
- 2
src/users.js View File

49
 
49
 
50
                 luticateAuthUsers.edit = function(data, promise)
50
                 luticateAuthUsers.edit = function(data, promise)
51
                 {
51
                 {
52
-                    return luticateRequest.post("/api/luticate/users/" + data.user_id + "/edit", null, data, promise);
52
+                    return luticateRequest.post("/api/luticate/users/" + data.user_id + "/edit", data, null, promise);
53
                 };
53
                 };
54
 
54
 
55
                 luticateAuthUsers.add = function(data, promise)
55
                 luticateAuthUsers.add = function(data, promise)
56
                 {
56
                 {
57
-                    return luticateRequest.post("/api/luticate/users/add", null, data, promise);
57
+                    return luticateRequest.post("/api/luticate/users/add", data, null, promise);
58
+                };
59
+
60
+                luticateAuthUsers.setPassword = function(data, promise)
61
+                {
62
+                    return luticateRequest.post("/api/luticate/users/" + data.user_id + "/setPassword", data, null, promise);
63
+                };
64
+
65
+                luticateAuthUsers.del = function(data, promise)
66
+                {
67
+                    return luticateRequest.post("/api/luticate/users/" + data.user_id + "/del", null, null, promise);
58
                 };
68
                 };
59
 
69
 
60
             return luticateAuthUsers;
70
             return luticateAuthUsers;

Loading…
Cancel
Save