Skip to content

Commit 2dd2a67

Browse files
author
Musa Demir
committed
Merge branch 'maliming/patch-1' of https://github.com/aspnetboilerplate/module-zero-core-template into maliming/patch-1
1 parent e78d09c commit 2dd2a67

File tree

1 file changed

+3
-9
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui

1 file changed

+3
-9
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/index.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
<script>
7575
window.onload = function () {
7676
if (!abp.security.antiForgery.getToken()) {
77-
fetch("/antiforgery/SetCookie")
78-
.then(data => { });
77+
fetch("/AntiForgery/SetCookie");
7978
}
8079

8180
var configObject = JSON.parse('%(ConfigObject)');
@@ -115,19 +114,14 @@
115114
lineHeight: "normal"
116115
},
117116
onClick: function () {
118-
var authorizeButton = document.getElementById('authorize');
119117
if (abp.auth.getToken()) {
120118
abp.swagger.logout();
121-
authorizeButton.innerText = getAuthorizeButtonText();
122-
authorizeButton.className = 'btn ' + getAuthorizeButtonCssClass();
119+
location.reload();
123120
} else {
124121
abp.swagger.openAuthDialog(function () {
125-
authorizeButton.innerText = getAuthorizeButtonText();
126-
authorizeButton.className = 'btn ' + getAuthorizeButtonCssClass();
127-
abp.swagger.closeAuthDialog();
122+
location.reload();
128123
});
129124
}
130-
location.reload();
131125
}
132126
}, getAuthorizeButtonText());
133127
}

0 commit comments

Comments
 (0)