Added method='post' to all HTML forms
This commit is contained in:
parent
e3e57f8dc7
commit
eb34546c78
|
@ -17,7 +17,7 @@ class LoginForm extends ImmutablePureComponent {
|
|||
const { intl, isLoading, handleSubmit } = this.props;
|
||||
|
||||
return (
|
||||
<form className='simple_form new_user' onSubmit={handleSubmit}>
|
||||
<form className='simple_form new_user' method='post' onSubmit={handleSubmit}>
|
||||
<fieldset disabled={isLoading}>
|
||||
<div className='fields-group'>
|
||||
<div className='input email optional user_email'>
|
||||
|
|
|
@ -54,7 +54,7 @@ class OtpAuthForm extends ImmutablePureComponent {
|
|||
const { code_error } = this.state;
|
||||
|
||||
return (
|
||||
<form className='simple_form new_user otp-auth' onSubmit={this.handleSubmit}>
|
||||
<form className='simple_form new_user otp-auth' method='post' onSubmit={this.handleSubmit}>
|
||||
<fieldset disabled={this.state.isLoading}>
|
||||
<div className='fields-group'>
|
||||
<div className='input email optional user_email'>
|
||||
|
|
|
@ -146,7 +146,7 @@ export class SimpleForm extends ImmutablePureComponent {
|
|||
render() {
|
||||
const { children, onSubmit, ...props } = this.props;
|
||||
return (
|
||||
<form className='simple_form' onSubmit={this.onSubmit} {...props}>
|
||||
<form className='simple_form' method='post' onSubmit={this.onSubmit} {...props}>
|
||||
{children}
|
||||
</form>
|
||||
);
|
||||
|
|
|
@ -75,7 +75,7 @@ class Create extends React.PureComponent {
|
|||
const { title, description, coverImage, disabled, intl } = this.props;
|
||||
|
||||
return (
|
||||
<form className='group-form' onSubmit={this.handleSubmit}>
|
||||
<form className='group-form' method='post' onSubmit={this.handleSubmit}>
|
||||
<div>
|
||||
<input
|
||||
className='standard'
|
||||
|
|
|
@ -105,7 +105,7 @@ class Edit extends React.PureComponent {
|
|||
}
|
||||
|
||||
return (
|
||||
<form className='group-form' onSubmit={this.handleSubmit}>
|
||||
<form className='group-form' method='post' onSubmit={this.handleSubmit}>
|
||||
<div>
|
||||
<input
|
||||
className='standard'
|
||||
|
|
|
@ -50,7 +50,7 @@ class ListForm extends React.PureComponent {
|
|||
const save = intl.formatMessage(messages.save);
|
||||
|
||||
return (
|
||||
<form className='column-inline-form' onSubmit={this.handleSubmit}>
|
||||
<form className='column-inline-form' method='post' onSubmit={this.handleSubmit}>
|
||||
<input
|
||||
className='setting-text new-list-form__input'
|
||||
value={value}
|
||||
|
|
|
@ -53,7 +53,7 @@ class NewListForm extends React.PureComponent {
|
|||
const create = intl.formatMessage(messages.create);
|
||||
|
||||
return (
|
||||
<form className='column-inline-form' onSubmit={this.handleSubmit}>
|
||||
<form className='column-inline-form' method='post' onSubmit={this.handleSubmit}>
|
||||
<label>
|
||||
<span style={{ display: 'none' }}>{label}</span>
|
||||
|
||||
|
|
Loading…
Reference in New Issue