Correct password boolean direction

This commit is contained in:
2025-05-15 21:21:42 -07:00
parent 4db77ab78d
commit a9f2bf24bd
@@ -51,7 +51,7 @@
protected async Task TryChange() { protected async Task TryChange() {
Result = "Waiting on response from server"; Result = "Waiting on response from server";
if (NewPassword.Length >= 6){ 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 }); HttpResponseMessage TestLogin = await Http.PostAsJsonAsync("api/account/resetpassword", new Account(){ UserName = UserName, PasswordHash = NewPassword, Error = ResetPwd });
string result = await TestLogin.Content.ReadAsStringAsync(); string result = await TestLogin.Content.ReadAsStringAsync();
bool success = result == "true" ? true : false; bool success = result == "true" ? true : false;