Correct password boolean direction
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
protected async Task TryChange() {
|
||||
Result = "Waiting on response from server";
|
||||
if (NewPassword.Length >= 6){
|
||||
if (NewPassword != RepeatPassword){
|
||||
if (NewPassword == RepeatPassword){
|
||||
HttpResponseMessage TestLogin = await Http.PostAsJsonAsync("api/account/resetpassword", new Account(){ UserName = UserName, PasswordHash = NewPassword, Error = ResetPwd });
|
||||
string result = await TestLogin.Content.ReadAsStringAsync();
|
||||
bool success = result == "true" ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user