vue2_frontend...
This commit is contained in:
parent
8da393dd29
commit
5b8d70b817
@ -17,13 +17,9 @@ class AuthService {
|
||||
tokenService.removeUser()
|
||||
}
|
||||
|
||||
async register({ email, password, name }) {
|
||||
async register(email, password, name) {
|
||||
return api
|
||||
.post('/auth/register', {
|
||||
email,
|
||||
password,
|
||||
name
|
||||
})
|
||||
.post('/auth/register', { email: email, password: password, name: name })
|
||||
.then((response) => {
|
||||
const { data } = response
|
||||
if (data.access_token) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user