Created
July 25, 2020 13:54
-
-
Save fatihhcan/a63e76f9e9c9483d51099b6470fe8f9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun mailGonder(){ | |
var kullanici=FirebaseAuth.getInstance().currentUser | |
if (kullanici != null){ | |
kullanici.sendEmailVerification() | |
.addOnCompleteListener(object : OnCompleteListener<Void>{ | |
override fun onComplete(p0: Task<Void>) { | |
if(p0.isSuccessful){ | |
Toast.makeText(this@RegisterActivity,"Mailinizi kontrol edin, mailinizi onaylayın", Toast.LENGTH_SHORT).show() | |
}else{ | |
Toast.makeText(this@RegisterActivity,"Mail gönderilirken sorun oluştu "+p0.exception?.message, Toast.LENGTH_SHORT).show() | |
} | |
} | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment