mirror of
https://github.com/strapi/strapi.git
synced 2026-01-03 10:46:21 +00:00
Remove useless files
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
57ce9de53a
commit
46c1580038
@ -1,36 +0,0 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
import LinkNotification from '../../../../../admin/src/components/Users/LinkNotification';
|
||||
import basename from '../../../../../admin/src/core/utils/basename';
|
||||
|
||||
const MagicLink = ({ registrationToken }) => {
|
||||
const { formatMessage } = useIntl();
|
||||
|
||||
if (registrationToken) {
|
||||
return (
|
||||
<LinkNotification
|
||||
target={`${window.location.origin}${basename}auth/register?registrationToken=${registrationToken}`}
|
||||
>
|
||||
{formatMessage({ id: 'app.components.Users.MagicLink.connect' })}
|
||||
</LinkNotification>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<LinkNotification target={`${window.location.origin}${basename}`}>
|
||||
{formatMessage({ id: 'app.components.Users.MagicLink.connect.sso' })}
|
||||
</LinkNotification>
|
||||
);
|
||||
};
|
||||
|
||||
MagicLink.defaultProps = {
|
||||
registrationToken: '',
|
||||
};
|
||||
|
||||
MagicLink.propTypes = {
|
||||
registrationToken: PropTypes.string,
|
||||
};
|
||||
|
||||
export default MagicLink;
|
||||
@ -1,14 +0,0 @@
|
||||
import baseModel from '../../../../../../admin/src/components/Users/ModalCreateBody/utils/formDataModel';
|
||||
|
||||
const ssoInputsModel = strapi.features.isEnabled(strapi.features.SSO)
|
||||
? {
|
||||
useSSORegistration: true,
|
||||
}
|
||||
: {};
|
||||
|
||||
const formDataModel = {
|
||||
...baseModel,
|
||||
...ssoInputsModel,
|
||||
};
|
||||
|
||||
export default formDataModel;
|
||||
@ -1,21 +0,0 @@
|
||||
import baseForm from '../../../../../../admin/src/components/Users/ModalCreateBody/utils/roleSettingsForm';
|
||||
|
||||
const ssoInputs = strapi.features.isEnabled(strapi.features.SSO)
|
||||
? {
|
||||
useSSORegistration: {
|
||||
label: 'Settings.permissions.users.form.sso',
|
||||
type: 'bool',
|
||||
validations: {
|
||||
required: true,
|
||||
},
|
||||
description: 'Settings.permissions.users.form.sso.description',
|
||||
},
|
||||
}
|
||||
: {};
|
||||
|
||||
const form = {
|
||||
...baseForm,
|
||||
...ssoInputs,
|
||||
};
|
||||
|
||||
export default form;
|
||||
Loading…
x
Reference in New Issue
Block a user