change login by username
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import fetch from 'utils/fetch';
|
||||
|
||||
export function loginByEmail(email, password) {
|
||||
export function loginByUsername(username, password) {
|
||||
const data = {
|
||||
email,
|
||||
username,
|
||||
password
|
||||
};
|
||||
return fetch({
|
||||
url: '/login/loginbyemail',
|
||||
url: '/login/login',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
|
Reference in New Issue
Block a user