MailService mailService;
@Listen("onClick=#btnSimpan")
public void onSimpan(Event evt) {
if (txtPassword.getText() != null ? txtPassword.getText().equals(txtPasswordConfirm.getText()) : false) {
UserUser u = usr.getUser();
String pwd = txtPassword.getText();
String digest = userService.digestPassword(pwd);
u.setPassword(digest);
userUserRepository.save(u);
alert("Password change succeded");
mailService.sendMail("noreply@signal.org", "tejo.ak@gmail.com", "password change", "your password hasbeen change");
} else {
alert("Password and it's confirmation is not equal!!");