public string RequestLogIn(string usernameOrEmail, string password) { Utilities.StringTpye x = Utilities.TestString(usernameOrEmail); if (x == Utilities.StringTpye.Undefined || x == Utilities.StringTpye.Username) { //if (!Utilities.IsUsernameAndDiscriminator(usernameOrEmail) && !Utilities.IsEmail(usernameOrEmail)) return("Invalid Username#Discriminator or Email"); } if (string.IsNullOrEmpty(password)) { return("Invalid password"); } SendToServer(new RequestMsg_Login(usernameOrEmail, Utilities.SHA256(password))); return(null); }
public void RequestAddRemoveFollow(bool unFollow, string UsernameDiscriminatorOrEmail, Utilities.StringTpye type) => SendToServer(new RequestMsg_FollowAddRemove(unFollow, Token, UsernameDiscriminatorOrEmail, type == Utilities.StringTpye.Email));