Correct password boolean direction
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user