Skip to content

Commit

Permalink
Testing problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Starute committed Sep 3, 2021
1 parent 343dfe7 commit 0e35253
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class App extends Component {

<Route exact path="/searchUser" component={SearchUser} />
<Route exact path="/profile" component={Profile} />
<Route path="/user" component={BoardUser} />
<Route exact path={["/", "/home"]} component={HomePage} />
<Route path="/signup/:email/:code">
<Verify />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/LogIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LogIn extends Component {
) {
alert(response);
} else {
alert("Login successed. Welcome!");
alert("Login succeeded. Welcome!");
this.props.history.push("/");
window.location.reload();
}
Expand Down
9 changes: 2 additions & 7 deletions frontend/src/Components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,13 @@ class SignUp extends Component {
.then((response) => {
if (response.data === "Email is already taken.") {
this.setState({
msg: { user_exist: "Email Has been taken. Please login." },
msg: { user_exist: "Email has been taken." },
});
alert(response.data);
}
if (response.data === "Email is not valid.") {
this.setState({
msg: { email_invalid: "Email is not valid. Please try again." },
msg: { email_invalid: "Email is not valid." },
});
alert(response.data);
}
if (
response.data === "You just successfully submit a signup request."
Expand All @@ -98,9 +96,6 @@ class SignUp extends Component {
})
.finally(() => {
this.iswaiting = false;
//this.props.history.push("/signup");
//console.log("bruh");
// window.location = "/signup";
});
}
this.isWaiting = false;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/searchUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SearchUser extends Component {

componentDidMount() {
this._isMounted = true;
if (!this.state.basic.token) {
if (!this.state.basic) {
alert("Login required to access the page.");
this.props.history.push("/");
window.location.reload();
Expand Down

0 comments on commit 0e35253

Please sign in to comment.