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
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
.gradle/
|
||||
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 {
|
||||
val response = withContext(Dispatchers.IO) {
|
||||
api.login(LoginRequest(username.lowercase(getDefault()), password))
|
||||
api.login(LoginRequest(username.lowercase(getDefault()).trim(), password))
|
||||
}
|
||||
|
||||
if(response.isSuccessful) {
|
||||
@@ -45,7 +45,7 @@ class LoginViewModel(private val prefs: UserPreferences, private val appContext:
|
||||
|
||||
val account = Account(
|
||||
id = UUID.fromString(body.user.id),
|
||||
name = username,
|
||||
name = username.trim(),
|
||||
wgName = body.wgName,
|
||||
avatarUrl = null,
|
||||
serverUrl = serverUrl,
|
||||
|
||||
Reference in New Issue
Block a user