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.
18 lines
491 B
18 lines
491 B
class PasswordService {
|
|
async get_resets() {
|
|
const result = await axios.get('/api/v1/password/resets')
|
|
if ( result && result.data && result.data.data ) return result.data.data
|
|
}
|
|
|
|
async reset(password) {
|
|
await axios.post('/api/v1/password/resets', { password })
|
|
}
|
|
|
|
async request_reset(email) {
|
|
await axios.post('/api/v1/password/request_reset', { email })
|
|
}
|
|
}
|
|
|
|
const password_service = new PasswordService()
|
|
export { password_service }
|