INNER CODE UNIT · JavaScript

updateUserProfile

genular/pandora · src/app/api/backend/index.js:20

export function updateUserProfile(data) {
    return request({
        url: baseUrlPath + "/user/update-profile",
        method: "POST",
        data,
    });
}


/**
 * Login user to back-end and create Auth Token in the database
 * @param {string} username - Username of the current user
 * @param {string} password - Password of the current user
 */
export function userLogin(username, password) {
    const data = {
        username,
        password,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…