瀏覽代碼

fixed post parameters

tags/0.1.0
Robin Thoni 9 年之前
父節點
當前提交
0ebbbb6ba4
共有 1 個文件被更改,包括 12 次插入2 次删除
  1. 12
    2
      src/users.js

+ 12
- 2
src/users.js 查看文件

@@ -49,12 +49,22 @@
49 49
 
50 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 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 70
             return luticateAuthUsers;

Loading…
取消
儲存