mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-17 04:33:15 +02:00
refactor: remove type email
This commit is contained in:
@@ -19,7 +19,7 @@ export class EmailService {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!this.config.get("emailRecepientsEnabled"))
|
if (!this.config.get("ENABLE_EMAIL_RECIPIENTS"))
|
||||||
throw new InternalServerErrorException("Email service disabled");
|
throw new InternalServerErrorException("Email service disabled");
|
||||||
|
|
||||||
const shareUrl = `${this.config.get("APP_URL")}/share/${shareId}`;
|
const shareUrl = `${this.config.get("APP_URL")}/share/${shareId}`;
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ const Body = ({
|
|||||||
<Stack>
|
<Stack>
|
||||||
<TextInput label="Username" {...form.getInputProps("username")} />
|
<TextInput label="Username" {...form.getInputProps("username")} />
|
||||||
<TextInput
|
<TextInput
|
||||||
type="email"
|
|
||||||
label="Email"
|
label="Email"
|
||||||
{...form.getInputProps("email")}
|
{...form.getInputProps("email")}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ const Body = ({
|
|||||||
{...accountForm.getInputProps("username")}
|
{...accountForm.getInputProps("username")}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
type="email"
|
|
||||||
label="Email"
|
label="Email"
|
||||||
{...accountForm.getInputProps("email")}
|
{...accountForm.getInputProps("email")}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ const SignInForm = () => {
|
|||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
label="Email or username"
|
label="Email or username"
|
||||||
type="email"
|
|
||||||
placeholder="you@email.com"
|
placeholder="you@email.com"
|
||||||
{...form.getInputProps("emailOrUsername")}
|
{...form.getInputProps("emailOrUsername")}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ const SignUpForm = () => {
|
|||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
label="Email"
|
label="Email"
|
||||||
type="email"
|
|
||||||
placeholder="you@email.com"
|
placeholder="you@email.com"
|
||||||
mt="md"
|
mt="md"
|
||||||
{...form.getInputProps("email")}
|
{...form.getInputProps("email")}
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ const Account = () => {
|
|||||||
{...accountForm.getInputProps("username")}
|
{...accountForm.getInputProps("username")}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
type="email"
|
|
||||||
label="Email"
|
label="Email"
|
||||||
{...accountForm.getInputProps("email")}
|
{...accountForm.getInputProps("email")}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user