mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Improve termsOfUse UI and error handling
This commit is contained in:
@ -49,7 +49,11 @@ export const AgreementModal = (props) => {
|
||||
function getTermsOfUseContent(url) {
|
||||
return fetch(url, {
|
||||
method: "GET",
|
||||
}).then(r => r.text());
|
||||
})
|
||||
.then(r => r.text())
|
||||
.catch(error => {
|
||||
Setting.showMessage("error", `${i18next.t("general:Failed to get TermsOfUse URL")}: ${url}, ${error}`);
|
||||
});
|
||||
}
|
||||
|
||||
export function isAgreementRequired(application) {
|
||||
|
Reference in New Issue
Block a user