use 'development' client only if apiOrigin template value is empty

This commit is contained in:
Johannes Zellner
2023-06-15 16:41:14 +02:00
parent 9d3fa94960
commit 8e99f67fb7

View File

@@ -2714,7 +2714,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
this.setToken(null);
// start oidc flow
window.location.href = this.apiOrigin + '/openid/auth?client_id=' + (this.apiOrigin ? 'development' : 'dashboard') + '&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html';
window.location.href = this.apiOrigin + '/openid/auth?client_id=' + ('<%= apiOrigin %>' ? 'development' : 'dashboard') + '&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html';
};
Client.prototype.logout = function () {