services file updated
This commit is contained in:
@@ -29,7 +29,7 @@ export default function Login() {
|
||||
if(!fields.username || !fields.password){
|
||||
throw new Error('Please provide all fields marked *')
|
||||
}
|
||||
return loginUser('panel/auth/login', fields)
|
||||
return loginUser(fields)
|
||||
},
|
||||
onError: (error) => {
|
||||
console.log(error)
|
||||
@@ -84,7 +84,7 @@ export default function Login() {
|
||||
</div>
|
||||
{login.error &&
|
||||
<>
|
||||
<div className="col-12 mt-3">
|
||||
<div className="col-12">
|
||||
<p className='text-danger'>{login.error.message}</p>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user