Trying to disable user in other way
This commit is contained in:
parent
f52fea7103
commit
ac83bfb261
|
@ -60,8 +60,8 @@ public class DeleteAccountResource {
|
||||||
logger.debug("Beginning the transaction on transaction manager");
|
logger.debug("Beginning the transaction on transaction manager");
|
||||||
session.getTransactionManager().begin();
|
session.getTransactionManager().begin();
|
||||||
|
|
||||||
logger.debug("Setting user as not enabled in realm");
|
logger.debug("Finding user model and setting it as not enabled in realm");
|
||||||
user.setEnabled(false);
|
session.users().getUserById(user.getId(), realm).setEnabled(false);
|
||||||
|
|
||||||
if (session.getTransactionManager().isActive()) {
|
if (session.getTransactionManager().isActive()) {
|
||||||
logger.debug("Committing the transaction on transaction manager");
|
logger.debug("Committing the transaction on transaction manager");
|
||||||
|
|
Loading…
Reference in New Issue