use of org.apache.shiro.authc.credential.PasswordService in project ART-TIME by Artezio.
the class SettingsService method update.
@FacesMessage(onCompleteMessageKey = "message.settingsAreSaved")
public Settings update(Settings settings, String password) {
PasswordService passwordService = new DefaultPasswordService();
String encryptedPassword = passwordService.encryptPassword(password);
settings.setAdminPassword(encryptedPassword);
return update(settings);
}
Aggregations