Skip to content

Instantly share code, notes, and snippets.

@fatihhcan
Created July 25, 2020 13:54
Show Gist options
  • Save fatihhcan/a63e76f9e9c9483d51099b6470fe8f9c to your computer and use it in GitHub Desktop.
Save fatihhcan/a63e76f9e9c9483d51099b6470fe8f9c to your computer and use it in GitHub Desktop.
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