1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

latest build embed assets

This commit is contained in:
Harvey Kandola 2017-09-10 19:30:02 +01:00
parent 2386dcbd83
commit fbf2222eda
2 changed files with 620 additions and 622 deletions

View file

@ -12,10 +12,8 @@
import Ember from 'ember';
import NotifierMixin from "../../mixins/notifier";
import Encoding from "../../utils/encoding";
import netUtil from '../../utils/net';
export default Ember.Controller.extend(NotifierMixin, {
ajax: Ember.inject.service(),
actions: {
@ -25,7 +23,7 @@ export default Ember.Controller.extend(NotifierMixin, {
data: this.model,
dataType: "text",
}).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);
window.location.href = "/auth/sso/" + encodeURIComponent(credentials);
}).catch((error) => { // eslint-disable-line no-unused-vars