Skip to content
Snippets Groups Projects
Commit 2c4ef0be authored by srosse's avatar srosse
Browse files

OO-520: double check before deleting the temporary key to change the password

parent eed07bc3
No related branches found
No related tags found
No related merge requests found
...@@ -317,7 +317,9 @@ public class RegistrationManager extends BasicManager { ...@@ -317,7 +317,9 @@ public class RegistrationManager extends BasicManager {
*/ */
public void deleteTemporaryKeyWithId(String keyValue) { public void deleteTemporaryKeyWithId(String keyValue) {
TemporaryKeyImpl tKey = loadTemporaryKeyByRegistrationKey(keyValue); TemporaryKeyImpl tKey = loadTemporaryKeyByRegistrationKey(keyValue);
deleteTemporaryKey(tKey); if(tKey != null) {
deleteTemporaryKey(tKey);
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment