Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).then(user => {
dispatch({ type: '@@xadmin/AUTH_SIGN_IN', payload: _.omit(user, 'password') })
app.go(query && query.redirect || '/app/')
}).catch(error => {
dispatch({ type: '@@xadmin/AUTH_SIGN_IN_ERROR', error })
app.go(`/app/model/${model.name}/${item.id}/relations/${m.name}/`)}>{m.title || m.name}
)}
<div>{_t('Have account')}? <a href="#">app.go('/login')}>{_t('please login')}</a></div>
onChangePassword: () => () => {
app.go('/app/change_password')
}
}
}).then(user => {
app.go('/app/')
}).catch(error => {
throw new SubmissionError({ old_password: _t('Incorrect old password') })
onSuccess: () => (user) => {
app.go('/login')
}
}
{ auth.can_signup && (<div>{_t('Not registed')}? <a href="#">app.go('/signup')}>{_t('please signup')}</a></div>) }
{ auth.can_reset_password && (<div>{_t('Forgot password')}? <a href="#">app.go('/forget_password')}>{_t('reset password')}</a></div>) }
{ auth.can_reset_password && (<div>{_t('Forgot password')}? <a href="#">app.go('/forget_password')}>{_t('reset password')}</a></div>) }
onSelect={()=>app.go(`/app/model/${model.name}/${item.id}/relations/${m.name}/`)}>{m.title || m.name})
)}