Skip to content

Commit 57c25d3

Browse files
authored
fix(core): trim username and password before login (#2551)
Co-authored-by: mrAYush1804 <mrAyush1804.noreply.github.com>
1 parent a8f7247 commit 57c25d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmp-android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
android:name="com.google.mlkit.vision.DEPENDENCIES"
6969
android:value="barcode" />
7070

71-
Doc <!-- Disable Firebase analytics by default. This setting is overwritten for the `prod` flavor -->
71+
<!-- Disable Firebase analytics by default. This setting is overwritten for the `prod` flavor -->
7272
<meta-data
7373
android:name="firebase_analytics_collection_deactivated"
7474
android:value="true" />

core/data/src/commonMain/kotlin/com/mifos/core/data/repositoryImp/LoginRepositoryImp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ class LoginRepositoryImp(
2222
) : LoginRepository {
2323

2424
override suspend fun login(username: String, password: String): PostAuthenticationResponse {
25-
return dataManagerAuth.login(username, password)
25+
return dataManagerAuth.login(username.trim(), password.trim())
2626
}
2727
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ kotlinxCoroutines = "1.10.1"
116116
kotlinxDatetime = "0.7.1"
117117
kotlinxImmutable = "0.3.8"
118118
kotlinxSerializationJson = "1.7.3"
119-
ksp = "2.1.0-1.0.29"
119+
ksp = "2.1.10-1.0.30"
120120

121121
# Ktor & Ktorfit
122122
ktorVersion = "3.1.3"

0 commit comments

Comments
 (0)