send admin token
This commit is contained in:
parent
cd9c1721c1
commit
bb13a34dfa
1 changed files with 2 additions and 2 deletions
|
|
@ -1536,7 +1536,7 @@ export class CommandController extends Controller {
|
||||||
_profile.lastUpdatedAt = _Date;
|
_profile.lastUpdatedAt = _Date;
|
||||||
if (_profile.keycloak != null && _profile.keycloak != "") {
|
if (_profile.keycloak != null && _profile.keycloak != "") {
|
||||||
// console.log("4. disable keycloak/authen")
|
// console.log("4. disable keycloak/authen")
|
||||||
const delUserKeycloak = await deleteUser(_profile.keycloak);
|
const delUserKeycloak = await deleteUser(_profile.keycloak, adminToken);
|
||||||
if (delUserKeycloak) {
|
if (delUserKeycloak) {
|
||||||
_profile.keycloak = "";
|
_profile.keycloak = "";
|
||||||
_profile.roleKeycloaks = [];
|
_profile.roleKeycloaks = [];
|
||||||
|
|
@ -1589,7 +1589,7 @@ export class CommandController extends Controller {
|
||||||
_profileEmp.lastUpdatedAt = _Date;
|
_profileEmp.lastUpdatedAt = _Date;
|
||||||
if (_profileEmp.keycloak != null && _profileEmp.keycloak != "") {
|
if (_profileEmp.keycloak != null && _profileEmp.keycloak != "") {
|
||||||
// disable keycloak/authen
|
// disable keycloak/authen
|
||||||
const delUserKeycloak = await deleteUser(_profileEmp.keycloak);
|
const delUserKeycloak = await deleteUser(_profileEmp.keycloak, adminToken);
|
||||||
if (delUserKeycloak) {
|
if (delUserKeycloak) {
|
||||||
_profileEmp.keycloak = "";
|
_profileEmp.keycloak = "";
|
||||||
_profileEmp.roleKeycloaks = [];
|
_profileEmp.roleKeycloaks = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue