title: How do i get the new Password stored in my firebase realtime database in android studio
body: <p>I just realized that when I press the forgot password in my app and change the password the password is not changed in the realtime database.Is it possible to change the realtime database as well?
  This is my  forgot password page code</p>
  <pre><code>public class ForgotPassword extends AppCompatActivity {
      
      EditText useremail;
      Button password;
      FirebaseAuth auth;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_forgot_password);
          useremail=findViewById(R.id.enterEmailAddress);
          password=findViewById(R.id.sendpassword);
          auth=FirebaseAuth.getInstance();
          password.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  auth.sendPasswordResetEmail(useremail.getText().toString()).addOnCompleteListener(new OnCompleteListener&lt;Void&gt;() {
                      @Override
                      public void onComplete(@NonNull Task&lt;Void&gt; task) {
                          if(task.isSuccessful()){
                              Toast.makeText(ForgotPassword.this,&quot;Password sent to your mail&quot;,Toast.LENGTH_LONG).show();
                          }
                          else{
                              Toast.makeText(ForgotPassword.this,task.getException().getMessage(),Toast.LENGTH_LONG).show();
                          }
                      }
                  });
              }
          });
      }
  }
  </code></pre>
  <p>this is the value stored in my database</p>
  <pre><code>{
    &quot;Users&quot; : {
      &quot;Driver&quot; : {
        &quot;S04QBZx3PxYaLfDWBC3j3otM5ml1&quot; : {
          &quot;mail&quot; : &quot;m.yusuf7423@gmail.com&quot;,
          &quot;password&quot; : &quot;1234567&quot;,
          &quot;username&quot; : &quot;YUSUF&quot;
        }
      }
    }
  }
  </code></pre>