login err msg

This commit is contained in:
Ebube
2023-04-16 19:05:53 +01:00
parent 8d0c252900
commit 8b8a1548e1
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ PUBLIC_URL=http://localhost:3000/
PORT=3000
PRIMARY_APP_API_URL=https://preview.keenthemes.com/metronic8/laravel/api
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_THEME_NAME=WrenchBoard
REACT_APP_THEME_DEMO=dashboard
+12 -3
View File
@@ -22,8 +22,8 @@ const loginSchema = Yup.object().shape({
})
const initialValues = {
email: 'johndoe@email.com',
password: '****',
email: '',
password: '',
}
/*
@@ -121,11 +121,19 @@ export function Login() {
</div>
{/* 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 */}
<div className='fv-row mb-8'>
<label className='form-label fs-6 fw-bolder text-dark'>Email</label>
<input
placeholder='Email'
placeholder='floatuser@email.com'
{...formik.getFieldProps('email')}
className={clsx(
'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>
<input
type='password'
placeHolder="●●●●●●"
autoComplete='off'
{...formik.getFieldProps('password')}
className={clsx(