Fixed CSS and request URLs
This commit is contained in:
@@ -19,14 +19,14 @@ class Login extends React.Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='panel left'>
|
||||
<div className='panel right'>
|
||||
<h1>Login</h1>
|
||||
|
||||
<div className='warning' style={warningStyle}>
|
||||
<p>{this.state.warning}</p>
|
||||
</div>
|
||||
|
||||
<form action='/login' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<form action='/loginrequest' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<div>
|
||||
<label>Email:</label>
|
||||
<input type='text' name='email' value={this.state.email} onChange={this.updateEmail.bind(this)} />
|
||||
|
||||
@@ -19,7 +19,7 @@ class Logout extends React.Component {
|
||||
|
||||
//build the XHR
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', '/logout', true);
|
||||
xhr.open('POST', '/logoutrequest', true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
|
||||
xhr.send(JSON.stringify({
|
||||
email: this.props.email,
|
||||
|
||||
@@ -18,14 +18,14 @@ class PasswordChange extends React.Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='panel left'>
|
||||
<div className='panel right'>
|
||||
<h1>Change Password</h1>
|
||||
|
||||
<div className='warning' style={warningStyle}>
|
||||
<p>{this.state.warning}</p>
|
||||
</div>
|
||||
|
||||
<form action='/passwordchange' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<form action='/passwordchangerequest' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<div>
|
||||
<label>Password:</label>
|
||||
<input type='password' name='password' value={this.state.password} onChange={this.updatePassword.bind(this)} />
|
||||
|
||||
@@ -16,14 +16,14 @@ class PasswordRecover extends React.Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='panel left'>
|
||||
<div className='panel right'>
|
||||
<h1>Recover Password</h1>
|
||||
|
||||
<div className='warning' style={warningStyle}>
|
||||
<p>{this.state.warning}</p>
|
||||
</div>
|
||||
|
||||
<form action='/passwordrecover' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<form action='/passwordrecoverrequest' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<div>
|
||||
<label>Email:</label>
|
||||
<input type='text' name='email' value={this.state.email} onChange={this.updateEmail.bind(this)} />
|
||||
|
||||
@@ -19,14 +19,14 @@ class PasswordReset extends React.Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='panel center'>
|
||||
<div className='panel right'>
|
||||
<h1>Change Password</h1>
|
||||
|
||||
<div className='warning' style={warningStyle}>
|
||||
<p>{this.state.warning}</p>
|
||||
</div>
|
||||
|
||||
<form action='/passwordreset' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<form action='/passwordresetrequest' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<div>
|
||||
<label>Password:</label>
|
||||
<input type='password' name='password' value={this.state.password} onChange={this.updatePassword.bind(this)} />
|
||||
|
||||
@@ -19,14 +19,14 @@ export default class Signup extends React.Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='panel left'>
|
||||
<div className='panel right'>
|
||||
<h1>Sign Up</h1>
|
||||
|
||||
<div className='warning' style={warningStyle}>
|
||||
<p>{this.state.warning}</p>
|
||||
</div>
|
||||
|
||||
<form action='/signup' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<form action='/signuprequest' method='post' onSubmit={(e) => this.submit(e)}>
|
||||
<div>
|
||||
<label>Email:</label>
|
||||
<input type='text' name='email' value={this.state.email} onChange={this.updateEmail.bind(this)} />
|
||||
|
||||
Reference in New Issue
Block a user