Skip to content

Commit

Permalink
[Google] Allow login with custom domains again (#833)
Browse files Browse the repository at this point in the history
Modified emailWithDomain in UiState

Signed-off-by: Arnau Mora Gras <[email protected]>
ArnyminerZ authored Jun 7, 2024
1 parent 4823d6d commit ffefd51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ class GoogleLoginModel @AssistedInject constructor(
val result: LoginInfo? = null
) {
val canContinue = email.isNotEmpty()
val emailWithDomain = StringUtils.appendIfMissing(email, "@gmail.com")
val emailWithDomain = if (email.contains("@")) email else "$email@gmail.com"
}

var uiState by mutableStateOf(UiState())

0 comments on commit ffefd51

Please sign in to comment.