blob: d6acd169fa35b7e3a3877c8946712e4529bd4715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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);
}
|