Implement settings dialog and password changes.

This commit is contained in:
2023-11-20 19:26:51 +00:00
parent 907fdb9baf
commit dfd4a15cc9
11 changed files with 228 additions and 36 deletions
+12 -1
View File
@@ -1,6 +1,8 @@
import Client from '@/repositories/Client'
import { useMainStore } from '@/stores/main'
export const url_login = '/login'
export const url_logout = '/logout '
export const url_logout = '/logout'
export const url_password = '/password-change'
export async function loginUser(username: string, password: string) {
const user = await Client.post(url_login, {
@@ -13,3 +15,12 @@ export async function logoutUser() {
const data = await Client.post(url_logout)
return data
}
export async function changePassword(username: string, passwordChange: string, password: string) {
const data = await Client.post(url_password, {
username,
passwordChange,
password
})
return data
}