env
This commit is contained in:
@ -73,7 +73,7 @@ const AuthProvider = ({ children }: PropsWithChildren) => {
|
||||
const login = async (username: string, password: string) => {
|
||||
try {
|
||||
const { data: auth } = await axios
|
||||
.post(LOGIN_URL, { username, password })
|
||||
.post(LOGIN_URL, { username, password }) // , { headers: { 'Access-Control-Allow-Origin': "*" }}
|
||||
.then((response) => response.data);
|
||||
|
||||
saveAuth({ ...auth.token, id: auth.user.id, role_name: auth.role_name, user: auth.user });
|
||||
|
||||
Reference in New Issue
Block a user