Skip to content
Snippets Groups Projects
Commit 5f908fa1 authored by Faller's avatar Faller
Browse files

Merge remote-tracking branch 'origin/master'

parents 670cce01 61c7e490
No related branches found
No related tags found
No related merge requests found
Pipeline #6607 passed with warnings
......@@ -69,9 +69,9 @@ public class SecurityBean implements SecurityLocal, SecurityRemote {
try {
//Valido la password
final var userFO = (UserFO) users.find(user.getMail());
final var salt = user.getSalt();
final var thisPassword = Secure.encriptPBKDF(user.getPassword(), salt);
final UserFO userFO2 = (UserFO) users.find(user.getMail());
String salt2 = userFO2.getSalt();
final var thisPassword = Secure.encriptPBKDF(user.getPassword(), salt2);
if (Objects.equals(thisPassword, user.getPassword())) {
userFO.setTokenDispositivo(user.getTokenDispositivo());
users.update(userFO);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment