user username to login
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import fetch from '@/utils/fetch'
|
||||
|
||||
export function login(email, password) {
|
||||
export function login(username, password) {
|
||||
return fetch({
|
||||
url: '/user/login',
|
||||
method: 'post',
|
||||
data: {
|
||||
email,
|
||||
username,
|
||||
password
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user