增加steam
This commit is contained in:
@@ -31,6 +31,19 @@ namespace TcgEngine
|
||||
}
|
||||
return res.success;
|
||||
}
|
||||
|
||||
public override async Task<bool> SteamLogin(string email, string username, string password)
|
||||
{
|
||||
LoginResponse res = await Client.SteamLogin(email, username, password);
|
||||
if (res.success)
|
||||
{
|
||||
this.logged_in = true;
|
||||
this.user_id = res.id;
|
||||
this.username = res.username;
|
||||
permission = res.permission_level;
|
||||
}
|
||||
return res.success;
|
||||
}
|
||||
|
||||
public override async Task<bool> RefreshLogin()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user