mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
latest build embed assets
This commit is contained in:
parent
2386dcbd83
commit
fbf2222eda
2 changed files with 620 additions and 622 deletions
File diff suppressed because one or more lines are too long
|
@ -12,10 +12,8 @@
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import NotifierMixin from "../../mixins/notifier";
|
import NotifierMixin from "../../mixins/notifier";
|
||||||
import Encoding from "../../utils/encoding";
|
import Encoding from "../../utils/encoding";
|
||||||
import netUtil from '../../utils/net';
|
|
||||||
|
|
||||||
export default Ember.Controller.extend(NotifierMixin, {
|
export default Ember.Controller.extend(NotifierMixin, {
|
||||||
|
|
||||||
ajax: Ember.inject.service(),
|
ajax: Ember.inject.service(),
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
@ -25,7 +23,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
data: this.model,
|
data: this.model,
|
||||||
dataType: "text",
|
dataType: "text",
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
let dom = netUtil.getSubdomain();
|
let dom = ""; // supports http://localhost:5001 installations (which is the default for all self-installs)
|
||||||
var credentials = Encoding.Base64.encode(dom + ":" + this.model.email + ":" + this.model.password);
|
var credentials = Encoding.Base64.encode(dom + ":" + this.model.email + ":" + this.model.password);
|
||||||
window.location.href = "/auth/sso/" + encodeURIComponent(credentials);
|
window.location.href = "/auth/sso/" + encodeURIComponent(credentials);
|
||||||
}).catch((error) => { // eslint-disable-line no-unused-vars
|
}).catch((error) => { // eslint-disable-line no-unused-vars
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue