Remove whitespace around email when logging in
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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")
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user