mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Add address to user.
This commit is contained in:
@ -64,6 +64,18 @@ export function deleteUser(user) {
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
||||
export function getAddressOptions(url) {
|
||||
return fetch(url, {
|
||||
method: "GET",
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
||||
export function getAffiliationOptions(url, code) {
|
||||
return fetch(`${url}/${code}`, {
|
||||
method: "GET",
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
||||
export function uploadAvatar(avatar) {
|
||||
let account;
|
||||
AuthBackend.getAccount("").then((res) => {
|
||||
|
Reference in New Issue
Block a user