mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
set defaults for request context
This commit is contained in:
parent
63b24aed3f
commit
8081b60146
23 changed files with 692 additions and 666 deletions
|
@ -12,6 +12,7 @@
|
|||
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, {
|
||||
|
||||
|
@ -24,7 +25,8 @@ export default Ember.Controller.extend(NotifierMixin, {
|
|||
data: this.model,
|
||||
dataType: "text",
|
||||
}).then(() => {
|
||||
var credentials = Encoding.Base64.encode(":" + this.model.email + ":" + this.model.password);
|
||||
let dom = netUtil.getSubdomain();
|
||||
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
|
||||
// TODO notify user of the error within the GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue