Aufgrund einer Konfigurationsänderung wird die GitLab Registry ab 10 Uhr nur Read Only zur Verfügung stehen. / Due to a configuration change, the GitLab Registry will be available for read-only access from 10am.

...
 
Commits (6)
This diff is collapsed.
{
"name": "@coscine/login",
"version": "1.6.0",
"version": "1.7.0",
"private": true,
"directories": {
"doc": "docs"
......@@ -12,7 +12,7 @@
"test:unit": "vue-cli-service test:unit"
},
"dependencies": {
"@coscine/api-connection": "^1.15.0",
"@coscine/api-connection": "^1.16.0",
"@itcenter-layout/bootstrap": "^1.5.5",
"@itcenter-layout/masterpage": "^1.2.9",
"@types/jquery": "^3.3.38",
......
......@@ -44,6 +44,7 @@
:shibbolethReturnUrl="this.shibbolethReturnUrl"
:idpUrl="this.idpUrl"
:loggedInWithShibboleth="this.loggedInWithShibboleth"
:mergeReturnUrl="mergeReturnUrl"
@back="loginBack"
@clickGetLoginForm="getLoginForm"
@clickGetORCiDForm="getORCiDForm"
......@@ -117,6 +118,10 @@ function getReturnUrl(method: string) {
return returnUrl;
}
function getMergeReturnUrl() {
return getReturnUrl('Merge');
}
function getTOSReturnUrl() {
return encodeURI('' + getReturnUrlParam());
}
......@@ -188,6 +193,7 @@ export default Vue.extend({
returnUrl: getAccountReturnUrl(),
shibbolethReturnUrl: getShibbolethReturnUrl(),
tosReturnUrl: getTOSReturnUrl(),
mergeReturnUrl: getMergeReturnUrl(),
idpUrl: getIdpUrl(),
orcidUrl: getORCiDUrl(),
logoutState: getIsLogout(),
......
......@@ -32,11 +32,16 @@ export default Vue.extend({
};
},
mounted() {
if (document.cookie.indexOf('coscine.mergetoken') !== -1) {
window.location.href = this.mergeReturnUrl;
return;
}
this.getOrcidState();
},
props: {
idpUrl: String,
loggedInWithShibboleth: Boolean,
mergeReturnUrl: String,
},
methods: {
clickLogoutOrcid() {
......