Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/.cache/admin/src/containers/AuthPage/components/ForgotPassword/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import React from 'react';
import { useIntl } from 'react-intl';
import { Padded } from '@buffetjs/core';
import PropTypes from 'prop-types';
import { BaselineAlignment } from 'strapi-helper-plugin';
import Button from '../../../../components/FullWidthButton';
import AuthLink from '../AuthLink';
import Input from '../Input';
import Logo from '../Logo';
import Section from '../Section';
import Box from '../Box';
const ForgotPassword = ({ formErrors, modifiedData, onChange, onSubmit }) => {
const { formatMessage } = useIntl();
return (
<>
<Section textAlign="center">
<Logo />
</Section>
<Section withBackground>
{/* FIXME IN BUFFET.JS */}
<BaselineAlignment top size="20px">
<Padded top size="xs">
<Box>
<form onSubmit={onSubmit}>
<Input
autoFocus
error={formErrors.email}
label="Auth.form.email.label"
name="email"
onChange={onChange}
placeholder="Auth.form.email.placeholder"
type="email"
validations={{ required: true }}
value={modifiedData.email}
/>
<BaselineAlignment top size="3px" />
<Padded top>
<Button type="submit" color="primary" textTransform="uppercase">
{formatMessage({ id: 'Auth.form.button.forgot-password' })}
</Button>
</Padded>
</form>
</Box>
</Padded>
</BaselineAlignment>
<AuthLink label="Auth.link.ready" to="/auth/login" />
</Section>
</>
);
};
ForgotPassword.defaultProps = {
onSubmit: e => e.preventDefault(),
};
ForgotPassword.propTypes = {
formErrors: PropTypes.object.isRequired,
modifiedData: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
onSubmit: PropTypes.func,
};
export default ForgotPassword;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0082 ]-- |