login
This commit is contained in:
parent
900d308f81
commit
6e2d5beee0
8 changed files with 426 additions and 42 deletions
|
|
@ -409,12 +409,21 @@ const tagClickPlacement = (tag: string) => {
|
|||
const doLogout = () => {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
() => keycloak.logout(),
|
||||
async () => {
|
||||
await deleteCookie("BMAHRIS_KEYCLOAK_IDENTITY");
|
||||
await deleteCookie("BMAHRIS_KEYCLOAK_REFRESH");
|
||||
window.location.href = "/login";
|
||||
},
|
||||
// keycloak.logout(),
|
||||
"ยืนยันการออกจากระบบ",
|
||||
"ต้องการออกจากระบบใช่หรือไม่?"
|
||||
);
|
||||
};
|
||||
|
||||
function deleteCookie(name: string) {
|
||||
document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
||||
}
|
||||
|
||||
/**
|
||||
* ดิงชื่อผู้ใช้งานจาก keycloak
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue