Class PasswordChangeService
java.lang.Object
com.atlassian.jira.web.action.admin.user.PasswordChangeService
A little bit of common code to help set the users password.
- Since:
- v3.13.3
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordChangeService
(UserUtil userUtil, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPassword
(ErrorCollection errorCollection, ApplicationUser user, String newPassword) This can be called to set the password for a user.
-
Constructor Details
-
PasswordChangeService
public PasswordChangeService(UserUtil userUtil, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
setPassword
This can be called to set the password for a user. If the set fails then an error message is put onto the error collection.- Parameters:
errorCollection
- error collection where we should add errorsuser
- the user to set the new password fornewPassword
- the new password
-