diff --git a/changelog/unreleased/siteacc-upd.md b/changelog/unreleased/siteacc-upd.md new file mode 100644 index 0000000000..4fd2ffb052 --- /dev/null +++ b/changelog/unreleased/siteacc-upd.md @@ -0,0 +1,8 @@ +Enhancement: Site accounts improvements + +This PR improves the site accounts: +- Removed/hid API key stuff +- Added quick links to the main panel +- Made alert notifications mandatory + +https://github.com/cs3org/reva/pull/2549 diff --git a/pkg/siteacc/account/manage/template.go b/pkg/siteacc/account/manage/template.go index 9fe3db7f2b..9862f02009 100644 --- a/pkg/siteacc/account/manage/template.go +++ b/pkg/siteacc/account/manage/template.go @@ -34,11 +34,6 @@ function handleRequestAccess() { window.location.replace("{{getServerAddress}}/account/?path=contact&subject=" + encodeURIComponent("Request GOCDB access")); } -function handleRequestKey() { - setState(STATE_STATUS, "Redirecting to the contact form..."); - window.location.replace("{{getServerAddress}}/account/?path=contact&subject=" + encodeURIComponent("Request API key")); -} - function handleLogout() { var xhr = new XMLHttpRequest(); xhr.open("GET", "{{getServerAddress}}/logout"); @@ -63,19 +58,12 @@ const tplStyleSheet = ` html * { font-family: arial !important; } - -.apikey { - font-family: monospace !important; - background: antiquewhite; - border: 1px solid black; - padding: 2px; -} ` const tplBody = `
Hello {{.Account.FirstName}} {{.Account.LastName}},
-On this page, you can manage your ScienceMesh user account. This includes editing your personal information, requesting an API key or access to the GOCDB and more.
+On this page, you can manage your ScienceMesh user account. This includes editing your personal information, requesting access to the GOCDB and more.
Quick links:
+ ++ GOCDB access: {{if .Data.GOCDBAccess}}Granted{{else}}Not granted{{end}}