Hi there,
using 2.5,
I’m stuck with something that worked fine in 1.6 …
I build a view ‘forgot password’ and the user gets an email with token and security number to reset his password.
The password view prompts the input fields with some validation checks.
All fine so far…
Now, i want to store that password:
private void storeNewPassword(User user, String password) {
user = unconstrainedDataManager.load(User.class)
.id(user.getId())
.one();
user.setPassword(passwordEncoder.encode(password));
unconstrainedDataManager.save(user);
}
On the one hand, the password is stored. But:
1
login prompts me: not correct username/password.
2
changing password in jmix default admin-user view shows me: cannot save the same password.
So something had been stored, but I cannot use it?
Thanks for your ideas…
br
HP