Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/services/securityService.js

28 lines
543 B

import baseService from "./baseService"
/**
* @param {string} login
* @param {string} password
* @param {boolean} _remember_me
* @returns {Promise<Object>}
*/
async function login({ login, password, _remember_me }) {
return await baseService.post("/login_json", {
username: login,
password,
_remember_me,
})
}
/**
* Checks the status of the user's session.
* @returns {Promise<Object>}
*/
async function checkSession() {
return await baseService.get("/check-session")
}
export default {
login,
checkSession,
}