This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
if (inputUsername === 'FINANCE' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'FINANCE',
team: null,
terr: null,
userName: 'finance',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername === 'HUMAN RESOURCES' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'HUMAN RESOURCES',
team: null,
terr: null,
userName: 'humanresources',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername === 'DEVELOPMENT CLINICAL TRIALS' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'DEVELOPMENT CLINICAL TRIALS',
team: null,
terr: null,
userName: 'developmentclinicaltrials',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername === 'MEDICAL AFFAIRS' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'MEDICAL AFFAIRS',
team: null,
terr: null,
userName: 'medicalaffairs',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername === 'MEDICAL AFFAIRS-MALT' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'MEDICAL AFFAIRS-MALT',
team: null,
terr: null,
userName: 'medicalaffairsmalt',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername === 'ABD' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'ABD',
team: null,
terr: null,
userName: 'abd',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername === 'MARKET ACCESS' && inputPassword === process.env.REACT_APP_PASS) {
user = {
email: '[email protected]',
role: 'MARKET ACCESS',
team: null,
terr: null,
userName: 'marketaccess',
empID: null,
SearchHistory: [],
};
props.login(user, () => {
if (props.location.pathname === '/login') {
props.history.push('/');
} else {
props.history.push(props.location.state.from.pathname);
}
});
} else if (inputUsername !== '' && inputPassword !== '') {
let temp = {
username: encodeURIComponent(inputUsername),
password: encodeURIComponent(inputPassword),
};
Axios(...
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/programming...