aboutsummaryrefslogtreecommitdiff
path: root/static/api/profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/api/profile.js')
-rw-r--r--static/api/profile.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/static/api/profile.js b/static/api/profile.js
deleted file mode 100644
index d6acd16..0000000
--- a/static/api/profile.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import * as rest from './rest.js';
-
-export async function set(name, birthday) {
- await rest.post('/api/profile/set', {
- full_name: name,
- birthday: birthday,
- });
-}
-
-export function update_password(old, next) {
- return rest.post('/api/profile/update-password', {
- current_password: old,
- new_password: next,
- }).then(r => r.success);
-}