loginWithPassword method
用户使用密码登录聊天服务器。
Note
Param userId 用户 ID,长度不超过 64 个字符。请确保你对该参数设值。
支持的字符包括英文字母(a-z),数字(0-9),下划线(_),英文横线(-),英文句号(.)。
该参数不区分大小写,大写字母会被自动转为小写字母。如果使用正则表达式设置该参数,则可以将表达式写为:^a-zA-Z0-9_-+$。
Param password 密码,长度不超过 64 个字符。请确保你对该参数设值。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError。
Implementation
Future<void> loginWithPassword(
String userId,
String password,
) async {
return login(userId, password, true);
}