Compare commits
2 Commits
ca1ad57f7e
...
463e9b6258
| Author | SHA1 | Date | |
|---|---|---|---|
|
463e9b6258
|
|||
|
e99e951232
|
43
.gitignore
vendored
43
.gitignore
vendored
@@ -1,11 +1,36 @@
|
|||||||
|
# Build artifacts
|
||||||
|
bin/
|
||||||
|
gen/
|
||||||
|
out/
|
||||||
|
build/
|
||||||
|
app/build/
|
||||||
|
|
||||||
|
# Kotlin / Java
|
||||||
*.iml
|
*.iml
|
||||||
.gradle
|
*.ipr
|
||||||
/local.properties
|
*.iws
|
||||||
/.idea
|
.idea/
|
||||||
.DS_Store
|
.gradle/
|
||||||
/build
|
|
||||||
/captures
|
|
||||||
.externalNativeBuild
|
|
||||||
.cxx
|
|
||||||
local.properties
|
local.properties
|
||||||
/app/build
|
|
||||||
|
# Android Studio
|
||||||
|
captures/
|
||||||
|
.externalNativeBuild/
|
||||||
|
.cxx/
|
||||||
|
.navigation/
|
||||||
|
|
||||||
|
# Keys & Secrets
|
||||||
|
*.jks
|
||||||
|
*.keystore
|
||||||
|
*.p12
|
||||||
|
google-services.json
|
||||||
|
|
||||||
|
# OS generated files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Bundle/Release
|
||||||
|
/app/release/
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class LoginViewModel(private val prefs: UserPreferences, private val appContext:
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
val response = withContext(Dispatchers.IO) {
|
val response = withContext(Dispatchers.IO) {
|
||||||
api.login(LoginRequest(username.lowercase(getDefault()), password))
|
api.login(LoginRequest(username.lowercase(getDefault()).trim(), password))
|
||||||
}
|
}
|
||||||
|
|
||||||
if(response.isSuccessful) {
|
if(response.isSuccessful) {
|
||||||
@@ -45,7 +45,7 @@ class LoginViewModel(private val prefs: UserPreferences, private val appContext:
|
|||||||
|
|
||||||
val account = Account(
|
val account = Account(
|
||||||
id = UUID.fromString(body.user.id),
|
id = UUID.fromString(body.user.id),
|
||||||
name = username,
|
name = username.trim(),
|
||||||
wgName = body.wgName,
|
wgName = body.wgName,
|
||||||
avatarUrl = null,
|
avatarUrl = null,
|
||||||
serverUrl = serverUrl,
|
serverUrl = serverUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user