We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfcd599 commit 766e5f5Copy full SHA for 766e5f5
pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+Login.kt
@@ -1,5 +1,6 @@
1
package com.mushare.plutosdk
2
3
+import android.util.Patterns
4
import com.mushare.plutosdk.Pluto.Companion.appId
5
import retrofit2.Call
6
import retrofit2.Callback
@@ -47,7 +48,7 @@ fun Pluto.resendValidationEmail(
47
48
handler: Pluto.PlutoRequestHandler? = null
49
) {
50
val postData =
- if (account.contains("@"))
51
+ if (Patterns.EMAIL_ADDRESS.matcher(account).matches())
52
ResendValidationEmailPostData(null, account, appId)
53
else
54
ResendValidationEmailPostData(account, null, appId)
0 commit comments