Skip to content

Commit 630a80b

Browse files
committed
Change user Info response update
- Return a more informative response if the password update was successful
1 parent 1cdc7c9 commit 630a80b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WhiteCore/Modules/Web/html/change_user_information.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ public Dictionary<string, object> Fill(WebInterface webInterface, string filenam
8080
IAuthenticationService authService =
8181
webInterface.Registry.RequestModuleInterface<IAuthenticationService>();
8282
if (authService != null)
83-
error = authService.SetPassword(user.PrincipalID, "UserAccount", password)
84-
? ""
85-
: "Failed to set your password, try again later";
83+
response = authService.SetPassword(user.PrincipalID, "UserAccount", password)
84+
? "Your password has been updated"
85+
: "Failed to set your password, try again later";
86+
8687
else
8788
response = "No authentication service was available to change your password";
8889
}

0 commit comments

Comments
 (0)