fix #5924: reauthenticate after changing the password
authorKatja Luther <k.luther@bgbm.org>
Tue, 31 Jan 2017 11:09:21 +0000 (12:09 +0100)
committerKatja Luther <k.luther@bgbm.org>
Tue, 31 Jan 2017 11:10:07 +0000 (12:10 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/password/PasswordWizard.java

index 975aff4c8ca08e3b11f4ea241313af42e0bf39dc..2765a11bd03ffca1ae64083ece9841a1351c908a 100644 (file)
@@ -71,6 +71,7 @@ public class PasswordWizard extends Wizard implements IConversationEnabled{
                            CdmStore.getService(IUserService.class).changePasswordForUser(user.getUsername(), passwordPage.getNewPassword());
                        }
                        CdmStore.getService(IUserService.class).loadWithUpdate(user.getUuid());
+                       CdmStore.getLoginManager().authenticate(user.getUsername(), passwordPage.getNewPassword());
                    internalConversation.commit(false);
                    internalConversation.unbind();
                    internalConversation.close();