mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-13 04:24:15 +00:00
added missing methods
This commit is contained in:
parent
c9bb0e7ff9
commit
a15ca416fd
@ -131,4 +131,28 @@ export default class User {
|
|||||||
|
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static async checkUsernameAvailability(username) {
|
||||||
|
const { data } = await app.cores.api.customRequest({
|
||||||
|
method: "GET",
|
||||||
|
url: `/user/username_available`,
|
||||||
|
params: {
|
||||||
|
username,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
static async checkEmailAvailability(email) {
|
||||||
|
const { data } = await app.cores.api.customRequest({
|
||||||
|
method: "GET",
|
||||||
|
url: `/user/email_available`,
|
||||||
|
params: {
|
||||||
|
email,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user