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

@@ -6,3 +6,5 @@ VERSION=$(cat $SCRIPT_DIR/../../scratch/version.txt)
NEW_APK=$(dirname $OLD_APK)/deighton-ar-${VERSION}.apk
mv $OLD_APK $NEW_APK
echo $NEW_APK

View File

@@ -12,7 +12,7 @@
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"android:release": "cd android; rm -rf ./app/build && ./gradlew assembleRelease",
"android:release": "cd android; rm -rf ./app/build && ./gradlew assembleRelease && ./rename-apk",
"ios": "react-native run-ios",
"test": "node node_modules/jest/bin/jest.js",
"postinstall": "sed -i '' 's/#import <RCTAnimation\\/RCTValueAnimatedNode.h>/#import \"RCTValueAnimatedNode.h\"/' ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h; sed -i '' 's/#import <fishhook\\/fishhook.h>/#import \"fishhook.h\"/' ./node_modules/react-native/Libraries/WebSocket/RCTReconnectingWebSocket.m"

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