class Main2Activity : AppCompatActivity() { private var mauth = FirebaseAuth.getInstance() override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main2) requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT val email = findViewById<View>(R.id.editText5) as EditText val txt=findViewById<View>(R.id.textView12) as TextView val btn = findViewById<View>(R.id.btn) as Button btn.setOnClickListener { toast("processing..........") mauth.sendPasswordResetEmail(email.text.toString().trim()) .addOnCompleteListener{ task-> if (task.isSuccessful){ toast("Password sent successfully,check your mail") } else{ toast("User not registered on our platform") } } }
Thursday, 8 February 2018
New
sendPasswordResetEmail in firebase using android studio and kotlin
About Wise4rmGod
android developer and a graphic designer,who likes to blog and share latest IT information and help young developers grow.
tutorials
Labels:
Android studio using Kotlin,
firebase,
tutorials
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment