我想使用自定义功能在firebase中注册?

时间:2017-04-11 09:23:55

标签: android firebase firebase-authentication

我想在我的Android应用程序中使用自定义函数在firebase中注册。目前我正在使用createUserWithEmailAndPassword函数。它默认需要两个参数,即Email&密码,但我的注册表格包括其他属性,如电话号码,姓名等。所以我该怎么办?目前我正在使用以下代码。

firebaseAuth.createUserWithEmailAndPassword(Email,Password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {

@Override
public void onComplete(@NonNull Task<AuthResult> task) {

if(task.isSuccessful())           
{

                progressDialog.cancel();
                Toast.makeText(SignUp.this,"Registration Successful",Toast.LENGTH_SHORT).show();
            }
            else
            {
                progressDialog.cancel();
                Toast.makeText(SignUp.this,"Could Not Register. Try Again.",Toast.LENGTH_SHORT).show();
            }

        }
    });

谢谢你:)

0 个答案:

没有答案