mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-06-28 16:25:46 +08:00
Fixed registration page
This commit is contained in:
parent
fb7b77efb7
commit
4a00dd1817
2 changed files with 11 additions and 8 deletions
|
@ -48,10 +48,10 @@ export function UserRegister(register: RegistrationParams) {
|
|||
return instance
|
||||
.post("/api/v1/accounts/users/", register)
|
||||
.then(async (response) => {
|
||||
return [response.status];
|
||||
return [true, response.status];
|
||||
})
|
||||
.catch((error) => {
|
||||
return [error.response.status, error.response.data];
|
||||
return [false, error.response.status, error.response.data];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue