login err msg
This commit is contained in:
@@ -2,7 +2,7 @@ PUBLIC_URL=http://localhost:3000/
|
|||||||
PORT=3000
|
PORT=3000
|
||||||
PRIMARY_APP_API_URL=https://preview.keenthemes.com/metronic8/laravel/api
|
PRIMARY_APP_API_URL=https://preview.keenthemes.com/metronic8/laravel/api
|
||||||
REACT_APP_BASE_LAYOUT_CONFIG_KEY='metronic-react-demo1-8150'
|
REACT_APP_BASE_LAYOUT_CONFIG_KEY='metronic-react-demo1-8150'
|
||||||
REACT_APP_API_URL=https://preview.keenthemes.com/metronic8/laravel/api
|
REACT_APP_API_URL=https://float-gat.dev.chiefsoft.net/en/userweb/api/v1
|
||||||
REACT_APP_VERSION=v8.1.5
|
REACT_APP_VERSION=v8.1.5
|
||||||
REACT_APP_THEME_NAME=WrenchBoard
|
REACT_APP_THEME_NAME=WrenchBoard
|
||||||
REACT_APP_THEME_DEMO=dashboard
|
REACT_APP_THEME_DEMO=dashboard
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ const loginSchema = Yup.object().shape({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const initialValues = {
|
const initialValues = {
|
||||||
email: 'johndoe@email.com',
|
email: '',
|
||||||
password: '****',
|
password: '',
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -121,11 +121,19 @@ export function Login() {
|
|||||||
</div>
|
</div>
|
||||||
{/* end::Separator */}
|
{/* end::Separator */}
|
||||||
|
|
||||||
|
{formik.status ? (
|
||||||
|
<div className='mb-lg-15 alert alert-danger'>
|
||||||
|
<div className='alert-text font-weight-bold'>{formik.status}</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
null
|
||||||
|
)}
|
||||||
|
|
||||||
{/* begin::Form group */}
|
{/* begin::Form group */}
|
||||||
<div className='fv-row mb-8'>
|
<div className='fv-row mb-8'>
|
||||||
<label className='form-label fs-6 fw-bolder text-dark'>Email</label>
|
<label className='form-label fs-6 fw-bolder text-dark'>Email</label>
|
||||||
<input
|
<input
|
||||||
placeholder='Email'
|
placeholder='floatuser@email.com'
|
||||||
{...formik.getFieldProps('email')}
|
{...formik.getFieldProps('email')}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'form-control bg-transparent',
|
'form-control bg-transparent',
|
||||||
@@ -151,6 +159,7 @@ export function Login() {
|
|||||||
<label className='form-label fw-bolder text-dark fs-6 mb-0'>Password</label>
|
<label className='form-label fw-bolder text-dark fs-6 mb-0'>Password</label>
|
||||||
<input
|
<input
|
||||||
type='password'
|
type='password'
|
||||||
|
placeHolder="●●●●●●"
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
{...formik.getFieldProps('password')}
|
{...formik.getFieldProps('password')}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
|||||||
Reference in New Issue
Block a user