New assets, fixed list box scrolling, header text, etc..
This commit is contained in:
@@ -62,8 +62,8 @@ export class Login extends Component {
|
||||
api.login(obj.email, obj.password, obj.rememberMe).then((user) => {
|
||||
this.setState({ waitModal: false })
|
||||
if (this.props.history) {
|
||||
const landing = user.role === 'broker' ? '/broker-dashboard' : 'dashboard'
|
||||
let url = new URLSearchParams(window.location.search).get('redirect') || landing
|
||||
let url = new URLSearchParams(window.location.search).get('redirect') || '/'
|
||||
|
||||
try {
|
||||
this.props.history.replace(url)
|
||||
} catch (error) {
|
||||
@@ -73,7 +73,7 @@ export class Login extends Component {
|
||||
}).catch((error) => {
|
||||
this.setState({
|
||||
waitModal: false,
|
||||
messageModal: { icon: 'hold', message: `Unable to login`, detail: error.message }
|
||||
messageModal: { icon: 'hand', message: `Unable to login`, detail: error.message }
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user