Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33793a6f7b | |||
| 77532b6236 | |||
| bdb69ae30f | |||
| 57e6d17e3f | |||
| 0d20792924 | |||
| 55d1b5cbea | |||
| f045ebcfe4 | |||
| 94f2354785 | |||
| 2ae9b73613 |
@@ -18,4 +18,6 @@ REACT_APP_THEME_API_URL=https://preview.keenthemes.com/theme-api/api
|
|||||||
REACT_APP_SITE_CONTACT_US=https://www.float.sg/contact
|
REACT_APP_SITE_CONTACT_US=https://www.float.sg/contact
|
||||||
REACT_APP_SITE_TERMS=https://www.float.sg/terms
|
REACT_APP_SITE_TERMS=https://www.float.sg/terms
|
||||||
REACT_APP_SITE_ABOUT_US=https://www.float.sg/about
|
REACT_APP_SITE_ABOUT_US=https://www.float.sg/about
|
||||||
|
|
||||||
|
REACT_APP_LOGIN_ERROR_TIMEOUT=5000
|
||||||
REACT_APP_SESSION_TIMEOUT=300000
|
REACT_APP_SESSION_TIMEOUT=300000
|
||||||
@@ -22,19 +22,19 @@ const SidebarLogo = () => {
|
|||||||
{config.layoutType === 'dark-sidebar' ? (
|
{config.layoutType === 'dark-sidebar' ? (
|
||||||
<img
|
<img
|
||||||
alt='Logo'
|
alt='Logo'
|
||||||
src={toAbsoluteUrl('/media/logos/default-dark.svg')}
|
src={toAbsoluteUrl('/media/logos/logo.png')}
|
||||||
className='h-25px app-sidebar-logo-default'
|
className='h-25px app-sidebar-logo-default'
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<img
|
<img
|
||||||
alt='Logo'
|
alt='Logo'
|
||||||
src={toAbsoluteUrl('/media/logos/default.svg')}
|
src={toAbsoluteUrl('/media/logos/logo.png')}
|
||||||
className='h-25px app-sidebar-logo-default theme-light-show'
|
className='h-25px app-sidebar-logo-default theme-light-show'
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
alt='Logo'
|
alt='Logo'
|
||||||
src={toAbsoluteUrl('/media/logos/default-dark.svg')}
|
src={toAbsoluteUrl('/media/logos/logo.png')}
|
||||||
className='h-25px app-sidebar-logo-default theme-dark-show'
|
className='h-25px app-sidebar-logo-default theme-dark-show'
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const AuthLayout = () => {
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='d-flex flex-column flex-lg-row flex-column-fluid h-100'>
|
<div className='d-flex flex-column flex-lg-row flex-column-fluid overflow-auto' style={{minHeight: '100vh'}}>
|
||||||
{/* begin::Body */}
|
{/* begin::Body */}
|
||||||
<div className='d-flex flex-column flex-lg-row-fluid w-lg-50 p-10 order-2 order-lg-1'>
|
<div className='d-flex flex-column flex-lg-row-fluid w-lg-50 p-10 order-2 order-lg-1'>
|
||||||
{/* begin::Form */}
|
{/* begin::Form */}
|
||||||
|
|||||||
@@ -50,12 +50,6 @@ export function ForgotPassword() {
|
|||||||
id='kt_login_password_reset_form'
|
id='kt_login_password_reset_form'
|
||||||
onSubmit={formik.handleSubmit}
|
onSubmit={formik.handleSubmit}
|
||||||
>
|
>
|
||||||
{/* begin::Heading */}
|
|
||||||
<div className='text-center mb-11'>
|
|
||||||
{/* <h1 className='text-dark fw-bolder mb-3'>Sign In</h1> */}
|
|
||||||
<img alt='Float Mobility' src={toAbsoluteUrl('/media/logos/logo.png')} className='h-35px' />
|
|
||||||
</div>
|
|
||||||
{/* begin::Heading */}
|
|
||||||
<div className='text-center mb-10'>
|
<div className='text-center mb-10'>
|
||||||
{/* begin::Link */}
|
{/* begin::Link */}
|
||||||
<div className='text-gray-500 fw-semibold fs-6'>
|
<div className='text-gray-500 fw-semibold fs-6'>
|
||||||
|
|||||||
@@ -49,18 +49,20 @@ export function Login() {
|
|||||||
setStatus('The login details are incorrect')
|
setStatus('The login details are incorrect')
|
||||||
setSubmitting(false)
|
setSubmitting(false)
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
console.log(auth) //remove later
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
saveAuth(auth)
|
saveAuth(auth)
|
||||||
setCurrentUser(auth.profile)
|
setCurrentUser(auth.profile)
|
||||||
console.log(auth) //remove later
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
saveAuth(undefined)
|
saveAuth(undefined)
|
||||||
setStatus('The login details are incorrect')
|
setStatus('The login details are incorrect')
|
||||||
setSubmitting(false)
|
setSubmitting(false)
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
|
} finally {
|
||||||
|
setTimeout(()=>{
|
||||||
|
setStatus('')
|
||||||
|
}, Number(process.env.REACT_APP_LOGIN_ERROR_TIMEOUT))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -73,10 +75,10 @@ export function Login() {
|
|||||||
id='kt_login_signin_form'
|
id='kt_login_signin_form'
|
||||||
>
|
>
|
||||||
{/* begin::Heading */}
|
{/* begin::Heading */}
|
||||||
<div className='text-center mb-11'>
|
{/* <div className='text-center mb-11'>
|
||||||
{/* <h1 className='text-dark fw-bolder mb-3'>Sign In</h1> */}
|
<h1 className='text-dark fw-bolder mb-3'>Sign In</h1>
|
||||||
<img alt='Float Mobility' src={toAbsoluteUrl('/media/logos/logo.png')} className='h-35px' />
|
<img alt='Float Mobility' src={toAbsoluteUrl('/media/logos/logo.png')} className='h-35px' />
|
||||||
</div>
|
</div> */}
|
||||||
{/* begin::Heading */}
|
{/* begin::Heading */}
|
||||||
|
|
||||||
{/* begin::Login options */}
|
{/* begin::Login options */}
|
||||||
@@ -130,14 +132,6 @@ 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>
|
||||||
@@ -221,6 +215,16 @@ export function Login() {
|
|||||||
</div>
|
</div>
|
||||||
{/* end::Action */}
|
{/* end::Action */}
|
||||||
|
|
||||||
|
{/* error message */}
|
||||||
|
{formik.status ? (
|
||||||
|
<div className='mb-lg-15 alert alert-danger'>
|
||||||
|
<div className='alert-text font-weight-bold'>{formik.status}</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
null
|
||||||
|
)}
|
||||||
|
{/* end of error message */}
|
||||||
|
|
||||||
<div className='text-gray-500 text-center fw-semibold fs-6'>
|
<div className='text-gray-500 text-center fw-semibold fs-6'>
|
||||||
Not a Member yet?{' '}
|
Not a Member yet?{' '}
|
||||||
<Link to='/auth/registration' className='link-primary'>
|
<Link to='/auth/registration' className='link-primary'>
|
||||||
|
|||||||
@@ -86,12 +86,6 @@ export function Registration() {
|
|||||||
id='kt_login_signup_form'
|
id='kt_login_signup_form'
|
||||||
onSubmit={formik.handleSubmit}
|
onSubmit={formik.handleSubmit}
|
||||||
>
|
>
|
||||||
{/* begin::Heading */}
|
|
||||||
<div className='text-center mb-11'>
|
|
||||||
{/* <h1 className='text-dark fw-bolder mb-3'>Sign In</h1> */}
|
|
||||||
<img alt='Float Mobility' src={toAbsoluteUrl('/media/logos/logo.png')} className='h-35px' />
|
|
||||||
</div>
|
|
||||||
{/* begin::Heading */}
|
|
||||||
{/* begin::Login options */}
|
{/* begin::Login options */}
|
||||||
<div className='row g-3 mb-9'>
|
<div className='row g-3 mb-9'>
|
||||||
{/* begin::Col */}
|
{/* begin::Col */}
|
||||||
|
|||||||
Reference in New Issue
Block a user