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/ResetPassword/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import React from 'react';
import { useIntl } from 'react-intl';
import { Padded } from '@buffetjs/core';
import { get } from 'lodash';
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 ResetPassword = ({ formErrors, modifiedData, onChange, onSubmit, requestError }) => {
const { formatMessage } = useIntl();
return (
<>
<Section textAlign="center">
<Logo />
</Section>
<Section withBackground>
<BaselineAlignment top size="25px">
<Box errorMessage={get(requestError, 'errorMessage', null)}>
<form onSubmit={onSubmit}>
<Input
autoFocus
error={formErrors.password}
label="Auth.form.password.label"
name="password"
onChange={onChange}
type="password"
validations={{ required: true }}
value={modifiedData.password}
/>
<Input
error={formErrors.confirmPassword}
label="Auth.form.confirmPassword.label"
name="confirmPassword"
onChange={onChange}
type="password"
validations={{ required: true }}
value={modifiedData.confirmPassword}
/>
<BaselineAlignment top size="3px" />
<Padded top>
<Button type="submit" color="primary" textTransform="uppercase">
{formatMessage({ id: 'Auth.form.button.reset-password' })}
</Button>
</Padded>
</form>
</Box>
</BaselineAlignment>
</Section>
<AuthLink label="Auth.link.ready" to="/auth/login" />
</>
);
};
ResetPassword.defaultProps = {
onSubmit: e => e.preventDefault(),
requestError: null,
};
ResetPassword.propTypes = {
formErrors: PropTypes.object.isRequired,
modifiedData: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
onSubmit: PropTypes.func,
requestError: PropTypes.object,
};
export default ResetPassword;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0061 ]-- |