mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
removed console logs
This commit is contained in:
parent
18f4f877ca
commit
f5c1eea6fa
@ -17,15 +17,15 @@ const routes = [
|
||||
component: Login
|
||||
},
|
||||
{
|
||||
path: '/publisher/dashboard',
|
||||
path: '/publisher/application-mgt',
|
||||
component: Dashboard,
|
||||
routes: [
|
||||
{
|
||||
path: '/publisher/dashboard/apps',
|
||||
path: '/publisher/application-mgt/apps',
|
||||
component: Apps
|
||||
},
|
||||
{
|
||||
path: '/publisher/dashboard/new-app',
|
||||
path: '/publisher/application-mgt/new-app',
|
||||
component: AddNewApp
|
||||
}
|
||||
]
|
||||
|
||||
@ -64,17 +64,11 @@ class NormalLoginForm extends React.Component {
|
||||
let data = "username=" + values.username + "&password=" + values.password + "&platform=publisher";
|
||||
axios.post('https://localhost:9443/api/application-mgt-handler/v1.0/login', data
|
||||
).then(res => {
|
||||
console.log(res);
|
||||
if (res.status === 200) {
|
||||
console.log(res);
|
||||
console.log(res.data);
|
||||
console.log(res.status);
|
||||
window.location = res.data.url;
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
if (error.response.status === 400) {
|
||||
console.log("hoo");
|
||||
thisForm.setState({
|
||||
inValid: true,
|
||||
loading: false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user