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); }