public async Task<bool> ResetPasswordAsync(string email, string newPassword) { var postModel = new { Email = email, NewPassword = newPassword }; return await PostAsync<bool>(RelativePaths.ResetPassword, postModel); }
public async Task<SignOutStatus> SignOutAsync(string userName, string token) { var postModel = new { UserName = userName, Token = token }; return await PostAsync<SignOutStatus>(RelativePaths.SignOut, postModel); }
public async Task<Tuple<object, RegisterStatus>> RegisterAsync(string userName, string password, string email) { var postModel = new { UserName = userName, Password = password, Email = email }; return await PostAsync<Tuple<object, RegisterStatus>>(RelativePaths.Register, postModel); }
public async Task<Tuple<KoalaBlogIdentityObject, SignInStatus, string>> SignInAsync(string userName, string password, bool isPersistent) { var postModel = new { UserName = userName, Password = password, IsPersistent = isPersistent }; return await PostAsync<Tuple<KoalaBlogIdentityObject, SignInStatus, string>>(RelativePaths.SignIn, postModel); }
public bool IsUserInRole(string userName, string[] rolesOrPermissionsName) { var postModel = new { UserName = userName, RolesOrPermissionsName = rolesOrPermissionsName }; return PostSync<bool, object>(RelativePaths.IsUserInRole, postModel); }