Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
if (Constant.Account && Constant.Password) {
IMStandard.Delegate.user.getMine = () => ({userId: Constant.Account});
Client.login(Constant.Account, Constant.Password)
.then(() => IMStandard.login(true));
}
}
{
if (this.account && this.password) {
Client.login(this.account, this.password)
}
}}>