Login with username works now

This commit is contained in:
Aaron Sun
2019-10-20 21:45:24 -04:00
parent adf3da4bb8
commit d2032eef75
6 changed files with 58 additions and 196 deletions

View File

@@ -1,5 +1,10 @@
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
Cloud: https://us-central1-twistter-e4649.cloudfunctions.net/api
Local: http://localhost:5001/twistter-e4649/us-central1/api (npm install --save firebase)
Below you will find some information on how to perform common tasks.<br>
You can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md).

View File

@@ -39,5 +39,5 @@
"last 1 safari version"
]
},
"proxy": "https://us-central1-twistter-e4649.cloudfunctions.net/api"
"proxy": "http://localhost:5001/twistter-e4649/us-central1/api"
}

View File

@@ -146,7 +146,7 @@ export class Login extends Component {
)}
</Button>
{errors.general && (
<Typography color="error">Wrong Email or Password</Typography>
<Typography color="error">Invalid username/email or password</Typography>
)}
</form>
</Grid>

View File

@@ -159,7 +159,7 @@ export class Signup extends Component {
)}
</Button>
{errors.general && (
<Typography color="error">Wrong Email or Password</Typography>
<Typography color="error">Invalid username/email or password</Typography>
)}
</form>
</Grid>