Remove whitespace around email when logging in

This commit is contained in:
John Lyon-Smith
2018-04-18 17:32:03 -07:00
parent f5044284ff
commit 5b27a879de
8 changed files with 118 additions and 60 deletions

View File

@@ -89,7 +89,7 @@ export class Login extends React.Component {
if (obj) {
api
.login(obj.email, obj.password, obj.rememberMe)
.login(obj.email.trim(), obj.password, obj.rememberMe)
.then((user) => {
history.replace("/home")
})

View File

@@ -1,5 +1,5 @@
export const localIPAddr = "192.168.1.175"
export const defaultUser = "john@lyon-smith.org"
//export const defaultUser = ""
//export const defaultUser = "john@lyon-smith.org"
export const defaultUser = ""
// export const minGPSAccuracy = 20
export const minGPSAccuracy = 100